| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 void Panel::Deactivate() { | 187 void Panel::Deactivate() { |
| 188 native_panel_->DeactivatePanel(); | 188 native_panel_->DeactivatePanel(); |
| 189 } | 189 } |
| 190 | 190 |
| 191 bool Panel::IsActive() const { | 191 bool Panel::IsActive() const { |
| 192 return native_panel_->IsPanelActive(); | 192 return native_panel_->IsPanelActive(); |
| 193 } | 193 } |
| 194 | 194 |
| 195 void Panel::FlashFrame() { | 195 void Panel::FlashFrame() { |
| 196 native_panel_->DrawAttention(); | 196 native_panel_->DrawAttention(); |
| 197 manager()->OnPanelAttentionStateChanged(this); | |
| 198 } | 197 } |
| 199 | 198 |
| 200 gfx::NativeWindow Panel::GetNativeHandle() { | 199 gfx::NativeWindow Panel::GetNativeHandle() { |
| 201 return native_panel_->GetNativePanelHandle(); | 200 return native_panel_->GetNativePanelHandle(); |
| 202 } | 201 } |
| 203 | 202 |
| 204 BrowserWindowTesting* Panel::GetBrowserWindowTesting() { | 203 BrowserWindowTesting* Panel::GetBrowserWindowTesting() { |
| 205 NOTIMPLEMENTED(); | 204 NOTIMPLEMENTED(); |
| 206 return NULL; | 205 return NULL; |
| 207 } | 206 } |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 native_panel_->ContentSizeFromWindowSize(max_size_)); | 607 native_panel_->ContentSizeFromWindowSize(max_size_)); |
| 609 } | 608 } |
| 610 | 609 |
| 611 void Panel::OnWindowSizeAvailable() { | 610 void Panel::OnWindowSizeAvailable() { |
| 612 ConfigureAutoResize(browser()->GetSelectedTabContents()); | 611 ConfigureAutoResize(browser()->GetSelectedTabContents()); |
| 613 } | 612 } |
| 614 | 613 |
| 615 void Panel::DestroyBrowser() { | 614 void Panel::DestroyBrowser() { |
| 616 native_panel_->DestroyPanelBrowser(); | 615 native_panel_->DestroyPanelBrowser(); |
| 617 } | 616 } |
| OLD | NEW |