| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 } | 174 } |
| 175 | 175 |
| 176 Browser* PanelBrowserWindowGtk::GetPanelBrowser() const { | 176 Browser* PanelBrowserWindowGtk::GetPanelBrowser() const { |
| 177 return browser(); | 177 return browser(); |
| 178 } | 178 } |
| 179 | 179 |
| 180 void PanelBrowserWindowGtk::DestroyPanelBrowser() { | 180 void PanelBrowserWindowGtk::DestroyPanelBrowser() { |
| 181 DestroyBrowser(); | 181 DestroyBrowser(); |
| 182 } | 182 } |
| 183 | 183 |
| 184 gfx::Size PanelBrowserWindowGtk::GetNonClientAreaExtent() const { |
| 185 NOTIMPLEMENTED(); |
| 186 return gfx::Size(); |
| 187 } |
| 188 |
| 189 int PanelBrowserWindowGtk::GetRestoredHeight() const { |
| 190 NOTIMPLEMENTED(); |
| 191 return 0; |
| 192 } |
| 193 |
| 194 void PanelBrowserWindowGtk::SetRestoredHeight(int height) { |
| 195 NOTIMPLEMENTED(); |
| 196 } |
| 197 |
| 184 void PanelBrowserWindowGtk::SetBoundsImpl() { | 198 void PanelBrowserWindowGtk::SetBoundsImpl() { |
| 185 gtk_window_move(window_, bounds_.x(), bounds_.y()); | 199 gtk_window_move(window_, bounds_.x(), bounds_.y()); |
| 186 gtk_window_resize(window(), bounds_.width(), bounds_.height()); | 200 gtk_window_resize(window(), bounds_.width(), bounds_.height()); |
| 187 } | 201 } |
| 188 | 202 |
| 189 void PanelBrowserWindowGtk::WillProcessEvent(GdkEvent* event) { | 203 void PanelBrowserWindowGtk::WillProcessEvent(GdkEvent* event) { |
| 190 // Nothing to do. | 204 // Nothing to do. |
| 191 } | 205 } |
| 192 | 206 |
| 193 void PanelBrowserWindowGtk::DidProcessEvent(GdkEvent* event) { | 207 void PanelBrowserWindowGtk::DidProcessEvent(GdkEvent* event) { |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 GTK_DRAG_RESULT_USER_CANCELLED); | 397 GTK_DRAG_RESULT_USER_CANCELLED); |
| 384 MessageLoopForUI::current()->RunAllPending(); | 398 MessageLoopForUI::current()->RunAllPending(); |
| 385 } | 399 } |
| 386 | 400 |
| 387 void NativePanelTestingGtk::FinishDragTitlebar() { | 401 void NativePanelTestingGtk::FinishDragTitlebar() { |
| 388 panel_browser_window_gtk_->OnDragFailed( | 402 panel_browser_window_gtk_->OnDragFailed( |
| 389 panel_browser_window_gtk_->drag_widget_, NULL, | 403 panel_browser_window_gtk_->drag_widget_, NULL, |
| 390 GTK_DRAG_RESULT_NO_TARGET); | 404 GTK_DRAG_RESULT_NO_TARGET); |
| 391 MessageLoopForUI::current()->RunAllPending(); | 405 MessageLoopForUI::current()->RunAllPending(); |
| 392 } | 406 } |
| OLD | NEW |