Chromium Code Reviews| 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" |
| 11 | 11 |
| 12 Panel::Panel(Browser* browser, const gfx::Rect& bounds) | 12 Panel::Panel(Browser* browser, const gfx::Rect& bounds) |
| 13 : bounds_(bounds), | 13 : bounds_(bounds), |
| 14 originator_(NULL), | |
|
jennb
2011/05/12 18:15:51
ordering in .h has originator_ before bounds_
jianli
2011/05/24 00:56:24
originator_ has been removed.
| |
| 14 minimized_(false) { | 15 minimized_(false) { |
| 15 browser_window_.reset(CreateNativePanel(browser, this)); | 16 browser_window_.reset(CreateNativePanel(browser, this)); |
| 16 } | 17 } |
| 17 | 18 |
| 18 Panel::~Panel() { | 19 Panel::~Panel() { |
| 19 Close(); | 20 Close(); |
| 20 } | 21 } |
| 21 | 22 |
| 22 PanelManager* Panel::manager() const { | 23 PanelManager* Panel::manager() const { |
| 23 return PanelManager::GetInstance(); | 24 return PanelManager::GetInstance(); |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 363 NOTIMPLEMENTED(); | 364 NOTIMPLEMENTED(); |
| 364 return NEW_POPUP; | 365 return NEW_POPUP; |
| 365 } | 366 } |
| 366 | 367 |
| 367 #if defined(OS_CHROMEOS) | 368 #if defined(OS_CHROMEOS) |
| 368 void Panel::ShowKeyboardOverlay(gfx::NativeWindow owning_window) { | 369 void Panel::ShowKeyboardOverlay(gfx::NativeWindow owning_window) { |
| 369 NOTIMPLEMENTED(); | 370 NOTIMPLEMENTED(); |
| 370 } | 371 } |
| 371 #endif | 372 #endif |
| 372 | 373 |
| 374 Panel* Panel::GetAsPanel() { | |
| 375 return this; | |
| 376 } | |
| 377 | |
| 373 void Panel::DestroyBrowser() { | 378 void Panel::DestroyBrowser() { |
| 374 NOTIMPLEMENTED(); | 379 NOTIMPLEMENTED(); |
| 375 } | 380 } |
| OLD | NEW |