#include "ipc/ipc_message_macros.h"
#include "native_mate/dictionary.h"
#include "ui/gfx/codec/png_codec.h"
-#include "ui/gfx/image/image.h"
-#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/point.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/size.h"
options.Get(switches::kFrame, &has_frame_);
// Read icon before window is created.
- gfx::ImageSkia icon;
- if (options.Get(switches::kIcon, &icon))
- icon_.reset(new gfx::Image(icon));
+ options.Get(switches::kIcon, &icon_);
// Read iframe security before any navigation.
options.Get(switches::kNodeIntegration, &node_integration_);
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/notification_observer.h"
#include "native_mate/scoped_persistent.h"
+#include "ui/gfx/image/image_skia.h"
struct WebPreferences;
}
namespace gfx {
-class Image;
class Point;
class Rect;
class Size;
bool has_frame_;
// Window icon.
- scoped_ptr<gfx::Image> icon_;
+ gfx::ImageSkia icon_;
private:
// Schedule a notification unresponsive event.
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
#include "ui/base/hit_test.h"
-#include "ui/gfx/image/image.h"
-#include "ui/gfx/image/image_skia.h"
#include "ui/views/background.h"
#include "ui/views/controls/webview/unhandled_keyboard_event_handler.h"
#include "ui/views/controls/webview/webview.h"
}
gfx::ImageSkia NativeWindowViews::GetWindowAppIcon() {
- if (icon_)
- return *(icon_->ToImageSkia());
- else
- return gfx::ImageSkia();
+ return icon_;
}
gfx::ImageSkia NativeWindowViews::GetWindowIcon() {