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 #include "chrome/browser/ui/panels/panel_manager.h" | 8 #include "chrome/browser/ui/panels/panel_manager.h" |
9 #include "ui/base/dragdrop/gtk_dnd_util.h" | 9 #include "ui/base/dragdrop/gtk_dnd_util.h" |
10 | 10 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 } | 185 } |
186 | 186 |
187 Browser* PanelBrowserWindowGtk::GetPanelBrowser() const { | 187 Browser* PanelBrowserWindowGtk::GetPanelBrowser() const { |
188 return browser(); | 188 return browser(); |
189 } | 189 } |
190 | 190 |
191 void PanelBrowserWindowGtk::DestroyPanelBrowser() { | 191 void PanelBrowserWindowGtk::DestroyPanelBrowser() { |
192 DestroyBrowser(); | 192 DestroyBrowser(); |
193 } | 193 } |
194 | 194 |
| 195 gfx::Size PanelBrowserWindowGtk::GetNonClientAreaExtent() const { |
| 196 NOTIMPLEMENTED(); |
| 197 return gfx::Size(); |
| 198 } |
| 199 |
| 200 int PanelBrowserWindowGtk::GetRestoredHeight() const { |
| 201 NOTIMPLEMENTED(); |
| 202 return 0; |
| 203 } |
| 204 |
| 205 void PanelBrowserWindowGtk::SetRestoredHeight(int height) { |
| 206 NOTIMPLEMENTED(); |
| 207 } |
| 208 |
195 void PanelBrowserWindowGtk::SetBoundsImpl() { | 209 void PanelBrowserWindowGtk::SetBoundsImpl() { |
196 gtk_window_move(window_, bounds_.x(), bounds_.y()); | 210 gtk_window_move(window_, bounds_.x(), bounds_.y()); |
197 gtk_window_resize(window(), bounds_.width(), bounds_.height()); | 211 gtk_window_resize(window(), bounds_.width(), bounds_.height()); |
198 } | 212 } |
199 | 213 |
200 void PanelBrowserWindowGtk::WillProcessEvent(GdkEvent* event) { | 214 void PanelBrowserWindowGtk::WillProcessEvent(GdkEvent* event) { |
201 // Nothing to do. | 215 // Nothing to do. |
202 } | 216 } |
203 | 217 |
204 void PanelBrowserWindowGtk::DidProcessEvent(GdkEvent* event) { | 218 void PanelBrowserWindowGtk::DidProcessEvent(GdkEvent* event) { |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 GTK_DRAG_RESULT_USER_CANCELLED); | 408 GTK_DRAG_RESULT_USER_CANCELLED); |
395 MessageLoopForUI::current()->RunAllPending(); | 409 MessageLoopForUI::current()->RunAllPending(); |
396 } | 410 } |
397 | 411 |
398 void NativePanelTestingGtk::FinishDragTitlebar() { | 412 void NativePanelTestingGtk::FinishDragTitlebar() { |
399 panel_browser_window_gtk_->OnDragFailed( | 413 panel_browser_window_gtk_->OnDragFailed( |
400 panel_browser_window_gtk_->drag_widget_, NULL, | 414 panel_browser_window_gtk_->drag_widget_, NULL, |
401 GTK_DRAG_RESULT_NO_TARGET); | 415 GTK_DRAG_RESULT_NO_TARGET); |
402 MessageLoopForUI::current()->RunAllPending(); | 416 MessageLoopForUI::current()->RunAllPending(); |
403 } | 417 } |
OLD | NEW |