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/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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 186 void Panel::Deactivate() { | 186 void Panel::Deactivate() { |
| 187 native_panel_->DeactivatePanel(); | 187 native_panel_->DeactivatePanel(); |
| 188 } | 188 } |
| 189 | 189 |
| 190 bool Panel::IsActive() const { | 190 bool Panel::IsActive() const { |
| 191 return native_panel_->IsPanelActive(); | 191 return native_panel_->IsPanelActive(); |
| 192 } | 192 } |
| 193 | 193 |
| 194 void Panel::FlashFrame() { | 194 void Panel::FlashFrame() { |
| 195 native_panel_->DrawAttention(); | 195 native_panel_->DrawAttention(); |
| 196 manager()->OnPanelAttentionStateChanged(this); | |
|
jennb
2011/12/19 22:24:50
Instead of everything going through the panel mana
jianli
2011/12/20 01:20:41
Per discussion, we leave it as it is. We will refa
| |
| 196 } | 197 } |
| 197 | 198 |
| 198 gfx::NativeWindow Panel::GetNativeHandle() { | 199 gfx::NativeWindow Panel::GetNativeHandle() { |
| 199 return native_panel_->GetNativePanelHandle(); | 200 return native_panel_->GetNativePanelHandle(); |
| 200 } | 201 } |
| 201 | 202 |
| 202 BrowserWindowTesting* Panel::GetBrowserWindowTesting() { | 203 BrowserWindowTesting* Panel::GetBrowserWindowTesting() { |
| 203 NOTIMPLEMENTED(); | 204 NOTIMPLEMENTED(); |
| 204 return NULL; | 205 return NULL; |
| 205 } | 206 } |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 610 native_panel_->ContentSizeFromWindowSize(max_size_)); | 611 native_panel_->ContentSizeFromWindowSize(max_size_)); |
| 611 } | 612 } |
| 612 | 613 |
| 613 void Panel::OnWindowSizeAvailable() { | 614 void Panel::OnWindowSizeAvailable() { |
| 614 ConfigureAutoResize(browser()->GetSelectedTabContents()); | 615 ConfigureAutoResize(browser()->GetSelectedTabContents()); |
| 615 } | 616 } |
| 616 | 617 |
| 617 void Panel::DestroyBrowser() { | 618 void Panel::DestroyBrowser() { |
| 618 native_panel_->DestroyPanelBrowser(); | 619 native_panel_->DestroyPanelBrowser(); |
| 619 } | 620 } |
| OLD | NEW |