| 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/extensions/extension_prefs.h" | 8 #include "chrome/browser/extensions/extension_prefs.h" |
| 9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 } | 38 } |
| 39 | 39 |
| 40 void Panel::SetPanelBounds(const gfx::Rect& bounds) { | 40 void Panel::SetPanelBounds(const gfx::Rect& bounds) { |
| 41 native_panel_->SetPanelBounds(bounds); | 41 native_panel_->SetPanelBounds(bounds); |
| 42 } | 42 } |
| 43 | 43 |
| 44 void Panel::Minimize() { | 44 void Panel::Minimize() { |
| 45 native_panel_->MinimizePanel(); | 45 native_panel_->MinimizePanel(); |
| 46 } | 46 } |
| 47 | 47 |
| 48 void Panel::Restore() { | 48 void Panel::Restore(bool titlebar_only) { |
| 49 native_panel_->RestorePanel(); | 49 native_panel_->RestorePanel(titlebar_only); |
| 50 } | 50 } |
| 51 | 51 |
| 52 void Panel::Show() { | 52 void Panel::Show() { |
| 53 native_panel_->ShowPanel(); | 53 native_panel_->ShowPanel(); |
| 54 } | 54 } |
| 55 | 55 |
| 56 void Panel::ShowInactive() { | 56 void Panel::ShowInactive() { |
| 57 NOTIMPLEMENTED(); | 57 NOTIMPLEMENTED(); |
| 58 } | 58 } |
| 59 | 59 |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 | 372 |
| 373 #if defined(OS_CHROMEOS) | 373 #if defined(OS_CHROMEOS) |
| 374 void Panel::ShowKeyboardOverlay(gfx::NativeWindow owning_window) { | 374 void Panel::ShowKeyboardOverlay(gfx::NativeWindow owning_window) { |
| 375 NOTIMPLEMENTED(); | 375 NOTIMPLEMENTED(); |
| 376 } | 376 } |
| 377 #endif | 377 #endif |
| 378 | 378 |
| 379 void Panel::DestroyBrowser() { | 379 void Panel::DestroyBrowser() { |
| 380 native_panel_->DestroyPanelBrowser(); | 380 native_panel_->DestroyPanelBrowser(); |
| 381 } | 381 } |
| OLD | NEW |