| 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/browser_theme_provider.h" | 9 #include "chrome/browser/themes/browser_theme_provider.h" |
| 10 #include "chrome/browser/ui/status_bubble.h" | 10 #include "chrome/browser/ui/status_bubble.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 bool BrowserFrameGtk::AlwaysUseNativeFrame() const { | 84 bool BrowserFrameGtk::AlwaysUseNativeFrame() const { |
| 85 return false; | 85 return false; |
| 86 } | 86 } |
| 87 | 87 |
| 88 views::View* BrowserFrameGtk::GetFrameView() const { | 88 views::View* BrowserFrameGtk::GetFrameView() const { |
| 89 return browser_frame_view_; | 89 return browser_frame_view_; |
| 90 } | 90 } |
| 91 | 91 |
| 92 void BrowserFrameGtk::TabStripDisplayModeChanged() { | 92 void BrowserFrameGtk::TabStripDisplayModeChanged() { |
| 93 if (GetRootView()->GetChildViewCount() > 0) { | 93 if (GetRootView()->has_children()) { |
| 94 // Make sure the child of the root view gets Layout again. | 94 // Make sure the child of the root view gets Layout again. |
| 95 GetRootView()->GetChildViewAt(0)->InvalidateLayout(); | 95 GetRootView()->GetChildViewAt(0)->InvalidateLayout(); |
| 96 } | 96 } |
| 97 GetRootView()->Layout(); | 97 GetRootView()->Layout(); |
| 98 } | 98 } |
| 99 | 99 |
| 100 ThemeProvider* BrowserFrameGtk::GetThemeProvider() const { | 100 ThemeProvider* BrowserFrameGtk::GetThemeProvider() const { |
| 101 return profile_->GetThemeProvider(); | 101 return profile_->GetThemeProvider(); |
| 102 } | 102 } |
| 103 | 103 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 if (was_full_screen != IsFullscreen()) | 138 if (was_full_screen != IsFullscreen()) |
| 139 browser_view_->FullScreenStateChanged(); | 139 browser_view_->FullScreenStateChanged(); |
| 140 return result; | 140 return result; |
| 141 } | 141 } |
| 142 | 142 |
| 143 gboolean BrowserFrameGtk::OnConfigureEvent(GtkWidget* widget, | 143 gboolean BrowserFrameGtk::OnConfigureEvent(GtkWidget* widget, |
| 144 GdkEventConfigure* event) { | 144 GdkEventConfigure* event) { |
| 145 browser_view_->WindowMoved(); | 145 browser_view_->WindowMoved(); |
| 146 return views::WindowGtk::OnConfigureEvent(widget, event); | 146 return views::WindowGtk::OnConfigureEvent(widget, event); |
| 147 } | 147 } |
| OLD | NEW |