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 void PanelBrowserWindowGtk::SetPanelBounds(const gfx::Rect& bounds) { | 86 void PanelBrowserWindowGtk::SetPanelBounds(const gfx::Rect& bounds) { |
87 SetBounds(bounds); | 87 SetBounds(bounds); |
88 } | 88 } |
89 | 89 |
90 void PanelBrowserWindowGtk::MinimizePanel() { | 90 void PanelBrowserWindowGtk::MinimizePanel() { |
91 NOTIMPLEMENTED(); | 91 NOTIMPLEMENTED(); |
92 } | 92 } |
93 | 93 |
94 void PanelBrowserWindowGtk::RestorePanel() { | 94 void PanelBrowserWindowGtk::RestorePanel(bool titlebar_only) { |
95 NOTIMPLEMENTED(); | 95 NOTIMPLEMENTED(); |
96 } | 96 } |
97 | 97 |
98 void PanelBrowserWindowGtk::ClosePanel() { | 98 void PanelBrowserWindowGtk::ClosePanel() { |
99 Close(); | 99 Close(); |
100 } | 100 } |
101 | 101 |
102 void PanelBrowserWindowGtk::ActivatePanel() { | 102 void PanelBrowserWindowGtk::ActivatePanel() { |
103 Activate(); | 103 Activate(); |
104 } | 104 } |
(...skipping 27 matching lines...) Expand all Loading... |
132 } | 132 } |
133 | 133 |
134 void PanelBrowserWindowGtk::DestroyPanelBrowser() { | 134 void PanelBrowserWindowGtk::DestroyPanelBrowser() { |
135 DestroyBrowser(); | 135 DestroyBrowser(); |
136 } | 136 } |
137 | 137 |
138 void PanelBrowserWindowGtk::SetBoundsImpl() { | 138 void PanelBrowserWindowGtk::SetBoundsImpl() { |
139 gtk_window_move(window_, bounds_.x(), bounds_.y()); | 139 gtk_window_move(window_, bounds_.x(), bounds_.y()); |
140 gtk_window_resize(window(), bounds_.width(), bounds_.height()); | 140 gtk_window_resize(window(), bounds_.width(), bounds_.height()); |
141 } | 141 } |
OLD | NEW |