| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/views/frame/browser_frame_gtk.h" | 5 #include "chrome/browser/ui/views/frame/browser_frame_gtk.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/themes/theme_service.h" | 9 #include "chrome/browser/themes/theme_service.h" |
| 10 #include "chrome/browser/themes/theme_service_factory.h" | 10 #include "chrome/browser/themes/theme_service_factory.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // with the parent. | 70 // with the parent. |
| 71 browser_view_->GetStatusBubble()->Hide(); | 71 browser_view_->GetStatusBubble()->Hide(); |
| 72 } | 72 } |
| 73 if (was_full_screen != IsFullscreen()) | 73 if (was_full_screen != IsFullscreen()) |
| 74 browser_view_->FullScreenStateChanged(); | 74 browser_view_->FullScreenStateChanged(); |
| 75 return result; | 75 return result; |
| 76 } | 76 } |
| 77 | 77 |
| 78 gboolean BrowserFrameGtk::OnConfigureEvent(GtkWidget* widget, | 78 gboolean BrowserFrameGtk::OnConfigureEvent(GtkWidget* widget, |
| 79 GdkEventConfigure* event) { | 79 GdkEventConfigure* event) { |
| 80 browser_view_->WindowMoved(); | |
| 81 return views::NativeWidgetGtk::OnConfigureEvent(widget, event); | 80 return views::NativeWidgetGtk::OnConfigureEvent(widget, event); |
| 82 } | 81 } |
| 83 | 82 |
| 84 | |
| 85 //////////////////////////////////////////////////////////////////////////////// | 83 //////////////////////////////////////////////////////////////////////////////// |
| 86 // NativeBrowserFrame, public: | 84 // NativeBrowserFrame, public: |
| 87 | 85 |
| 88 // static | 86 // static |
| 89 NativeBrowserFrame* NativeBrowserFrame::CreateNativeBrowserFrame( | 87 NativeBrowserFrame* NativeBrowserFrame::CreateNativeBrowserFrame( |
| 90 BrowserFrame* browser_frame, | 88 BrowserFrame* browser_frame, |
| 91 BrowserView* browser_view) { | 89 BrowserView* browser_view) { |
| 92 return new BrowserFrameGtk(browser_frame, browser_view); | 90 return new BrowserFrameGtk(browser_frame, browser_view); |
| 93 } | 91 } |
| OLD | NEW |