| 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 "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/browser_theme_provider.h" | 8 #include "chrome/browser/browser_theme_provider.h" |
| 9 #include "chrome/browser/profile.h" | 9 #include "chrome/browser/profile.h" |
| 10 #include "chrome/browser/status_bubble.h" | 10 #include "chrome/browser/status_bubble.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 virtual void GetWindowMask(const gfx::Size& size, | 42 virtual void GetWindowMask(const gfx::Size& size, |
| 43 gfx::Path* window_mask) {} | 43 gfx::Path* window_mask) {} |
| 44 virtual void EnableClose(bool enable) {} | 44 virtual void EnableClose(bool enable) {} |
| 45 virtual void ResetWindowControls() {} | 45 virtual void ResetWindowControls() {} |
| 46 | 46 |
| 47 // BrowserNonClientFrameView: | 47 // BrowserNonClientFrameView: |
| 48 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const { | 48 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const { |
| 49 return gfx::Rect(0, 0, width(), tabstrip->GetPreferredHeight()); | 49 return gfx::Rect(0, 0, width(), tabstrip->GetPreferredHeight()); |
| 50 } | 50 } |
| 51 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const { |
| 52 return 0; |
| 53 } |
| 51 virtual void UpdateThrobber(bool running) {} | 54 virtual void UpdateThrobber(bool running) {} |
| 52 | 55 |
| 53 private: | 56 private: |
| 54 DISALLOW_COPY_AND_ASSIGN(PopupNonClientFrameView); | 57 DISALLOW_COPY_AND_ASSIGN(PopupNonClientFrameView); |
| 55 }; | 58 }; |
| 56 | 59 |
| 57 } | 60 } |
| 58 | 61 |
| 59 #if !defined(OS_CHROMEOS) | 62 #if !defined(OS_CHROMEOS) |
| 60 // static (Factory method.) | 63 // static (Factory method.) |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 105 |
| 103 int BrowserFrameGtk::GetMinimizeButtonOffset() const { | 106 int BrowserFrameGtk::GetMinimizeButtonOffset() const { |
| 104 NOTIMPLEMENTED(); | 107 NOTIMPLEMENTED(); |
| 105 return 0; | 108 return 0; |
| 106 } | 109 } |
| 107 | 110 |
| 108 gfx::Rect BrowserFrameGtk::GetBoundsForTabStrip(BaseTabStrip* tabstrip) const { | 111 gfx::Rect BrowserFrameGtk::GetBoundsForTabStrip(BaseTabStrip* tabstrip) const { |
| 109 return browser_frame_view_->GetBoundsForTabStrip(tabstrip); | 112 return browser_frame_view_->GetBoundsForTabStrip(tabstrip); |
| 110 } | 113 } |
| 111 | 114 |
| 115 int BrowserFrameGtk::GetHorizontalTabStripVerticalOffset(bool restored) const { |
| 116 return browser_frame_view_->GetHorizontalTabStripVerticalOffset(restored); |
| 117 } |
| 118 |
| 112 void BrowserFrameGtk::UpdateThrobber(bool running) { | 119 void BrowserFrameGtk::UpdateThrobber(bool running) { |
| 113 browser_frame_view_->UpdateThrobber(running); | 120 browser_frame_view_->UpdateThrobber(running); |
| 114 } | 121 } |
| 115 | 122 |
| 116 void BrowserFrameGtk::ContinueDraggingDetachedTab() { | 123 void BrowserFrameGtk::ContinueDraggingDetachedTab() { |
| 117 NOTIMPLEMENTED(); | 124 NOTIMPLEMENTED(); |
| 118 } | 125 } |
| 119 | 126 |
| 120 ThemeProvider* BrowserFrameGtk::GetThemeProviderForFrame() const { | 127 ThemeProvider* BrowserFrameGtk::GetThemeProviderForFrame() const { |
| 121 // This is implemented for a different interface than GetThemeProvider is, | 128 // This is implemented for a different interface than GetThemeProvider is, |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 if (was_full_screen != IsFullscreen()) | 183 if (was_full_screen != IsFullscreen()) |
| 177 browser_view_->FullScreenStateChanged(); | 184 browser_view_->FullScreenStateChanged(); |
| 178 return result; | 185 return result; |
| 179 } | 186 } |
| 180 | 187 |
| 181 gboolean BrowserFrameGtk::OnConfigureEvent(GtkWidget* widget, | 188 gboolean BrowserFrameGtk::OnConfigureEvent(GtkWidget* widget, |
| 182 GdkEventConfigure* event) { | 189 GdkEventConfigure* event) { |
| 183 browser_view_->WindowMoved(); | 190 browser_view_->WindowMoved(); |
| 184 return views::WindowGtk::OnConfigureEvent(widget, event); | 191 return views::WindowGtk::OnConfigureEvent(widget, event); |
| 185 } | 192 } |
| OLD | NEW |