Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: chrome/browser/ui/panels/panel.cc

Issue 8953040: Add overflow indicator count on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel_manager.h » ('j') | chrome/browser/ui/panels/panel_overflow_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698