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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // called to close a panel. | 71 // called to close a panel. |
72 #ifndef NDEBUG | 72 #ifndef NDEBUG |
73 closing_ = true; | 73 closing_ = true; |
74 #endif | 74 #endif |
75 | 75 |
76 browser_window_->Close(); | 76 browser_window_->Close(); |
77 manager()->Remove(this); | 77 manager()->Remove(this); |
78 } | 78 } |
79 | 79 |
80 void Panel::Activate() { | 80 void Panel::Activate() { |
81 NOTIMPLEMENTED(); | 81 browser_window_->Activate(); |
82 } | 82 } |
83 | 83 |
84 void Panel::Deactivate() { | 84 void Panel::Deactivate() { |
85 NOTIMPLEMENTED(); | 85 browser_window_->Deactivate(); |
86 } | 86 } |
87 | 87 |
88 bool Panel::IsActive() const { | 88 bool Panel::IsActive() const { |
89 return browser_window_->IsActive(); | 89 return browser_window_->IsActive(); |
90 } | 90 } |
91 | 91 |
92 void Panel::FlashFrame() { | 92 void Panel::FlashFrame() { |
93 NOTIMPLEMENTED(); | 93 NOTIMPLEMENTED(); |
94 } | 94 } |
95 | 95 |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 | 377 |
378 #if defined(OS_CHROMEOS) | 378 #if defined(OS_CHROMEOS) |
379 void Panel::ShowKeyboardOverlay(gfx::NativeWindow owning_window) { | 379 void Panel::ShowKeyboardOverlay(gfx::NativeWindow owning_window) { |
380 NOTIMPLEMENTED(); | 380 NOTIMPLEMENTED(); |
381 } | 381 } |
382 #endif | 382 #endif |
383 | 383 |
384 void Panel::DestroyBrowser() { | 384 void Panel::DestroyBrowser() { |
385 NOTIMPLEMENTED(); | 385 NOTIMPLEMENTED(); |
386 } | 386 } |
OLD | NEW |