summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-11 05:28:37 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-11 05:28:37 +0000
commit7947f2160b3d4413f5d70f9119ed00b3970e15e5 (patch)
treeff185c46b6c39a2e5c5c74be531b34c3b4fa595c /views
parent4df3ac66b2c5e1c1d04bd944424e7bace6f58bf6 (diff)
downloadchromium_src-7947f2160b3d4413f5d70f9119ed00b3970e15e5.zip
chromium_src-7947f2160b3d4413f5d70f9119ed00b3970e15e5.tar.gz
chromium_src-7947f2160b3d4413f5d70f9119ed00b3970e15e5.tar.bz2
Reland: Make BrowserFrame concrete, create NativeBrowserFrame and NativeBrowserFrameDelegate.
BUG=72040 TEST=none TBR=sky git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77789 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/window/native_window.h11
-rw-r--r--views/window/window_gtk.cc4
-rw-r--r--views/window/window_gtk.h1
3 files changed, 16 insertions, 0 deletions
diff --git a/views/window/native_window.h b/views/window/native_window.h
index 6275e1a..9236689 100644
--- a/views/window/native_window.h
+++ b/views/window/native_window.h
@@ -6,10 +6,19 @@
#define VIEWS_WIDGET_NATIVE_WINDOW_H_
#pragma once
+#include "ui/gfx/native_widget_types.h"
#include "views/accessibility/accessibility_types.h"
+class SkBitmap;
+
+namespace gfx {
+class Rect;
+class Size;
+}
+
namespace views {
+class NativeWidget;
class NonClientFrameView;
////////////////////////////////////////////////////////////////////////////////
@@ -26,6 +35,8 @@ class NativeWindow {
virtual ~NativeWindow() {}
+ virtual Window* GetWindow() = 0;
+
protected:
friend class Window;
diff --git a/views/window/window_gtk.cc b/views/window/window_gtk.cc
index a24ce61..5e625a6 100644
--- a/views/window/window_gtk.cc
+++ b/views/window/window_gtk.cc
@@ -300,6 +300,10 @@ const NativeWidget* WindowGtk::AsNativeWidget() const {
return this;
}
+Window* WindowGtk::GetWindow() {
+ return this;
+}
+
void WindowGtk::SetWindowBounds(const gfx::Rect& bounds,
gfx::NativeWindow other_window) {
// TODO: need to deal with other_window.
diff --git a/views/window/window_gtk.h b/views/window/window_gtk.h
index 1797bf8..5e9915a 100644
--- a/views/window/window_gtk.h
+++ b/views/window/window_gtk.h
@@ -60,6 +60,7 @@ class WindowGtk : public WidgetGtk, public NativeWindow, public Window {
virtual void SetAccessibleState(AccessibilityTypes::State state) OVERRIDE;
virtual NativeWidget* AsNativeWidget() OVERRIDE;
virtual const NativeWidget* AsNativeWidget() const OVERRIDE;
+ virtual Window* GetWindow() OVERRIDE;
virtual void SetWindowBounds(const gfx::Rect& bounds,
gfx::NativeWindow other_window) OVERRIDE;
virtual void HideWindow() OVERRIDE;