| OLD | NEW |
| 1 // Copyright (c) 2010 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" | |
| 8 #include "base/logging.h" | 7 #include "base/logging.h" |
| 9 #include "chrome/browser/browser_theme_provider.h" | 8 #include "chrome/browser/browser_theme_provider.h" |
| 10 #include "chrome/browser/profile.h" | 9 #include "chrome/browser/profile.h" |
| 11 #include "chrome/browser/status_bubble.h" | 10 #include "chrome/browser/status_bubble.h" |
| 12 #include "chrome/browser/views/frame/app_panel_browser_frame_view.h" | 11 #include "chrome/browser/views/frame/app_panel_browser_frame_view.h" |
| 13 #include "chrome/browser/views/frame/browser_extender.h" | 12 #include "chrome/browser/views/frame/browser_extender.h" |
| 14 #include "chrome/browser/views/frame/browser_root_view.h" | 13 #include "chrome/browser/views/frame/browser_root_view.h" |
| 15 #include "chrome/browser/views/frame/browser_view.h" | 14 #include "chrome/browser/views/frame/browser_view.h" |
| 16 #include "chrome/browser/views/frame/opaque_browser_frame_view.h" | 15 #include "chrome/browser/views/frame/opaque_browser_frame_view.h" |
| 16 #include "gfx/font.h" |
| 17 #include "views/widget/root_view.h" | 17 #include "views/widget/root_view.h" |
| 18 #include "views/window/hit_test.h" | 18 #include "views/window/hit_test.h" |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // BrowserNonClientFrameView implementation for popups. We let the window | 22 // BrowserNonClientFrameView implementation for popups. We let the window |
| 23 // manager implementation render the decorations for popups, so this draws | 23 // manager implementation render the decorations for popups, so this draws |
| 24 // nothing. | 24 // nothing. |
| 25 class PopupNonClientFrameView : public BrowserNonClientFrameView { | 25 class PopupNonClientFrameView : public BrowserNonClientFrameView { |
| 26 public: | 26 public: |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 if (was_full_screen != IsFullscreen()) | 180 if (was_full_screen != IsFullscreen()) |
| 181 browser_view_->FullScreenStateChanged(); | 181 browser_view_->FullScreenStateChanged(); |
| 182 return result; | 182 return result; |
| 183 } | 183 } |
| 184 | 184 |
| 185 gboolean BrowserFrameGtk::OnConfigureEvent(GtkWidget* widget, | 185 gboolean BrowserFrameGtk::OnConfigureEvent(GtkWidget* widget, |
| 186 GdkEventConfigure* event) { | 186 GdkEventConfigure* event) { |
| 187 browser_view_->WindowMoved(); | 187 browser_view_->WindowMoved(); |
| 188 return views::WindowGtk::OnConfigureEvent(widget, event); | 188 return views::WindowGtk::OnConfigureEvent(widget, event); |
| 189 } | 189 } |
| OLD | NEW |