summaryrefslogtreecommitdiffstats
path: root/views/window
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-31 18:30:30 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-31 18:30:30 +0000
commit9a97d7d84e6618a3c365bec9fd9709cbe59b1d1b (patch)
tree3b3d79cfb409159882ecb8a4c3639f62936f427c /views/window
parent1faba6135b52ae3a0f85760edc5ef1516c2fd756 (diff)
downloadchromium_src-9a97d7d84e6618a3c365bec9fd9709cbe59b1d1b.zip
chromium_src-9a97d7d84e6618a3c365bec9fd9709cbe59b1d1b.tar.gz
chromium_src-9a97d7d84e6618a3c365bec9fd9709cbe59b1d1b.tar.bz2
Fix bustage in window_gtk introduced by theme changes adding 2 methods to Window.
TBR=brettw BUG=none TEST=none Review URL: http://codereview.chromium.org/118063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17303 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/window')
-rw-r--r--views/window/window_gtk.cc8
-rw-r--r--views/window/window_gtk.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/views/window/window_gtk.cc b/views/window/window_gtk.cc
index f27a771..4b181ed 100644
--- a/views/window/window_gtk.cc
+++ b/views/window/window_gtk.cc
@@ -183,6 +183,14 @@ gfx::NativeWindow WindowGtk::GetNativeWindow() const {
return GTK_WINDOW(GetNativeView());
}
+bool WindowGtk::ShouldUseNativeFrame() const {
+ return false;
+}
+
+void WindowGtk::FrameTypeChanged() {
+ NOTIMPLEMENTED();
+}
+
WindowGtk::WindowGtk(WindowDelegate* window_delegate)
: WidgetGtk(TYPE_WINDOW),
is_modal_(false),
diff --git a/views/window/window_gtk.h b/views/window/window_gtk.h
index 18b9210..92ccd56 100644
--- a/views/window/window_gtk.h
+++ b/views/window/window_gtk.h
@@ -56,6 +56,8 @@ class WindowGtk : public WidgetGtk, public Window {
virtual NonClientView* GetNonClientView() const;
virtual ClientView* GetClientView() const;
virtual gfx::NativeWindow GetNativeWindow() const;
+ virtual bool ShouldUseNativeFrame() const;
+ virtual void FrameTypeChanged();
virtual Window* AsWindow() { return this; }
virtual const Window* AsWindow() const { return this; }