| 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/panels/panel_browser_window_gtk.h" | 5 #include "chrome/browser/ui/panels/panel_browser_window_gtk.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/panels/panel.h" | 7 #include "chrome/browser/ui/panels/panel.h" |
| 8 | 8 |
| 9 NativePanel* Panel::CreateNativePanel(Browser* browser, Panel* panel, | 9 NativePanel* Panel::CreateNativePanel(Browser* browser, Panel* panel, |
| 10 const gfx::Rect& bounds) { | 10 const gfx::Rect& bounds) { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 84 } |
| 85 | 85 |
| 86 gfx::Rect PanelBrowserWindowGtk::GetPanelBounds() const { | 86 gfx::Rect PanelBrowserWindowGtk::GetPanelBounds() const { |
| 87 return bounds_; | 87 return bounds_; |
| 88 } | 88 } |
| 89 | 89 |
| 90 void PanelBrowserWindowGtk::SetPanelBounds(const gfx::Rect& bounds) { | 90 void PanelBrowserWindowGtk::SetPanelBounds(const gfx::Rect& bounds) { |
| 91 SetBounds(bounds); | 91 SetBounds(bounds); |
| 92 } | 92 } |
| 93 | 93 |
| 94 void PanelBrowserWindowGtk::MinimizePanel() { | 94 void PanelBrowserWindowGtk::OnPanelExpansionStateChanged( |
| 95 Panel::ExpansionState expansion_state) { |
| 95 NOTIMPLEMENTED(); | 96 NOTIMPLEMENTED(); |
| 96 } | 97 } |
| 97 | 98 |
| 98 void PanelBrowserWindowGtk::RestorePanel() { | 99 bool PanelBrowserWindowGtk::ShouldBringUpPanelTitleBar(int mouse_x, |
| 100 int mouse_y) const { |
| 99 NOTIMPLEMENTED(); | 101 NOTIMPLEMENTED(); |
| 102 return false; |
| 100 } | 103 } |
| 101 | 104 |
| 102 void PanelBrowserWindowGtk::ClosePanel() { | 105 void PanelBrowserWindowGtk::ClosePanel() { |
| 103 Close(); | 106 Close(); |
| 104 } | 107 } |
| 105 | 108 |
| 106 void PanelBrowserWindowGtk::ActivatePanel() { | 109 void PanelBrowserWindowGtk::ActivatePanel() { |
| 107 Activate(); | 110 Activate(); |
| 108 } | 111 } |
| 109 | 112 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 136 } | 139 } |
| 137 | 140 |
| 138 void PanelBrowserWindowGtk::DestroyPanelBrowser() { | 141 void PanelBrowserWindowGtk::DestroyPanelBrowser() { |
| 139 DestroyBrowser(); | 142 DestroyBrowser(); |
| 140 } | 143 } |
| 141 | 144 |
| 142 void PanelBrowserWindowGtk::SetBoundsImpl() { | 145 void PanelBrowserWindowGtk::SetBoundsImpl() { |
| 143 gtk_window_move(window_, bounds_.x(), bounds_.y()); | 146 gtk_window_move(window_, bounds_.x(), bounds_.y()); |
| 144 gtk_window_resize(window(), bounds_.width(), bounds_.height()); | 147 gtk_window_resize(window(), bounds_.width(), bounds_.height()); |
| 145 } | 148 } |
| OLD | NEW |