| 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.h" | 5 #include "chrome/browser/ui/panels/panel.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/panels/panel_manager.h" | 9 #include "chrome/browser/ui/panels/panel_manager.h" |
| 10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 } | 24 } |
| 25 | 25 |
| 26 void Panel::SetPanelBounds(const gfx::Rect& bounds) { | 26 void Panel::SetPanelBounds(const gfx::Rect& bounds) { |
| 27 if (bounds_ == bounds) | 27 if (bounds_ == bounds) |
| 28 return; | 28 return; |
| 29 bounds_ = bounds; | 29 bounds_ = bounds; |
| 30 browser_window_->SetBounds(bounds); | 30 browser_window_->SetBounds(bounds); |
| 31 } | 31 } |
| 32 | 32 |
| 33 void Panel::Minimize() { | 33 void Panel::Minimize() { |
| 34 if (minimized_) |
| 35 return; |
| 36 minimized_ = true; |
| 37 |
| 34 NOTIMPLEMENTED(); | 38 NOTIMPLEMENTED(); |
| 35 } | 39 } |
| 36 | 40 |
| 37 void Panel::Restore() { | 41 void Panel::Restore() { |
| 42 if (!minimized_) |
| 43 return; |
| 44 minimized_ = false; |
| 45 |
| 38 NOTIMPLEMENTED(); | 46 NOTIMPLEMENTED(); |
| 39 } | 47 } |
| 40 | 48 |
| 41 void Panel::Show() { | 49 void Panel::Show() { |
| 42 browser_window_->Show(); | 50 browser_window_->Show(); |
| 43 } | 51 } |
| 44 | 52 |
| 45 void Panel::ShowInactive() { | 53 void Panel::ShowInactive() { |
| 46 NOTIMPLEMENTED(); | 54 NOTIMPLEMENTED(); |
| 47 } | 55 } |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 | 362 |
| 355 #if defined(OS_CHROMEOS) | 363 #if defined(OS_CHROMEOS) |
| 356 void Panel::ShowKeyboardOverlay(gfx::NativeWindow owning_window) { | 364 void Panel::ShowKeyboardOverlay(gfx::NativeWindow owning_window) { |
| 357 NOTIMPLEMENTED(); | 365 NOTIMPLEMENTED(); |
| 358 } | 366 } |
| 359 #endif | 367 #endif |
| 360 | 368 |
| 361 void Panel::DestroyBrowser() { | 369 void Panel::DestroyBrowser() { |
| 362 NOTIMPLEMENTED(); | 370 NOTIMPLEMENTED(); |
| 363 } | 371 } |
| OLD | NEW |