| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/views/frame/browser_frame_gtk.h" | 5 #include "chrome/browser/views/frame/browser_frame_gtk.h" |
| 6 | 6 |
| 7 #include "app/gfx/font.h" | 7 #include "app/gfx/font.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chrome/browser/browser_theme_provider.h" | 9 #include "chrome/browser/browser_theme_provider.h" |
| 10 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
| 11 #include "chrome/browser/status_bubble.h" | 11 #include "chrome/browser/status_bubble.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 30 // NonClientFrameView: | 30 // NonClientFrameView: |
| 31 virtual gfx::Rect GetBoundsForClientView() const { | 31 virtual gfx::Rect GetBoundsForClientView() const { |
| 32 return gfx::Rect(0, 0, width(), height()); | 32 return gfx::Rect(0, 0, width(), height()); |
| 33 } | 33 } |
| 34 virtual bool AlwaysUseCustomFrame() const { return false; } | 34 virtual bool AlwaysUseCustomFrame() const { return false; } |
| 35 virtual bool AlwaysUseNativeFrame() const { return true; } | 35 virtual bool AlwaysUseNativeFrame() const { return true; } |
| 36 virtual gfx::Rect GetWindowBoundsForClientBounds( | 36 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 37 const gfx::Rect& client_bounds) const { | 37 const gfx::Rect& client_bounds) const { |
| 38 return client_bounds; | 38 return client_bounds; |
| 39 } | 39 } |
| 40 virtual gfx::Point GetSystemMenuPoint() const { | |
| 41 // Never used on GTK. | |
| 42 // TODO: make this method windows specific. | |
| 43 return gfx::Point(0, 0); | |
| 44 } | |
| 45 virtual int NonClientHitTest(const gfx::Point& point) { | 40 virtual int NonClientHitTest(const gfx::Point& point) { |
| 46 return HTNOWHERE; | 41 return HTNOWHERE; |
| 47 } | 42 } |
| 48 virtual void GetWindowMask(const gfx::Size& size, | 43 virtual void GetWindowMask(const gfx::Size& size, |
| 49 gfx::Path* window_mask) {} | 44 gfx::Path* window_mask) {} |
| 50 virtual void EnableClose(bool enable) {} | 45 virtual void EnableClose(bool enable) {} |
| 51 virtual void ResetWindowControls() {} | 46 virtual void ResetWindowControls() {} |
| 52 | 47 |
| 53 // BrowserNonClientFrameView: | 48 // BrowserNonClientFrameView: |
| 54 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const { | 49 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 if (was_full_screen != IsFullscreen()) | 173 if (was_full_screen != IsFullscreen()) |
| 179 browser_view_->FullScreenStateChanged(); | 174 browser_view_->FullScreenStateChanged(); |
| 180 return result; | 175 return result; |
| 181 } | 176 } |
| 182 | 177 |
| 183 gboolean BrowserFrameGtk::OnConfigureEvent(GtkWidget* widget, | 178 gboolean BrowserFrameGtk::OnConfigureEvent(GtkWidget* widget, |
| 184 GdkEventConfigure* event) { | 179 GdkEventConfigure* event) { |
| 185 browser_view_->WindowMoved(); | 180 browser_view_->WindowMoved(); |
| 186 return views::WindowGtk::OnConfigureEvent(widget, event); | 181 return views::WindowGtk::OnConfigureEvent(widget, event); |
| 187 } | 182 } |
| OLD | NEW |