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

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

Issue 10051020: Move full-screen detection logic from PanelManager to DisplaySettingsProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux asan Created 8 years, 8 months 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
« no previous file with comments | « chrome/browser/ui/panels/panel.cc ('k') | chrome/browser/ui/panels/panel_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_browser_view.h" 5 #include "chrome/browser/ui/panels/panel_browser_view.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/native_window_notification_source.h" 9 #include "chrome/browser/native_window_notification_source.h"
10 #include "chrome/browser/ui/panels/display_settings_provider.h" 10 #include "chrome/browser/ui/panels/display_settings_provider.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 mouse_pressed_(false), 54 mouse_pressed_(false),
55 mouse_dragging_state_(NO_DRAGGING), 55 mouse_dragging_state_(NO_DRAGGING),
56 is_drawing_attention_(false), 56 is_drawing_attention_(false),
57 old_focused_view_(NULL) { 57 old_focused_view_(NULL) {
58 } 58 }
59 59
60 PanelBrowserView::~PanelBrowserView() { 60 PanelBrowserView::~PanelBrowserView() {
61 } 61 }
62 62
63 void PanelBrowserView::Init() { 63 void PanelBrowserView::Init() {
64 if (!panel_->manager()->is_full_screen()) { 64 if (!panel_->manager()->display_settings_provider()->is_full_screen()) {
65 // TODO(prasadt): Implement this code. 65 // TODO(prasadt): Implement this code.
66 // HideThePanel. 66 // HideThePanel.
67 } 67 }
68 68
69 BrowserView::Init(); 69 BrowserView::Init();
70 70
71 GetWidget()->non_client_view()->SetAccessibleName( 71 GetWidget()->non_client_view()->SetAccessibleName(
72 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); 72 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME));
73 73
74 registrar_.Add( 74 registrar_.Add(
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 return expected_color == frame_view->title_label_->enabled_color(); 722 return expected_color == frame_view->title_label_->enabled_color();
723 } 723 }
724 724
725 bool NativePanelTestingWin::IsWindowSizeKnown() const { 725 bool NativePanelTestingWin::IsWindowSizeKnown() const {
726 return true; 726 return true;
727 } 727 }
728 728
729 bool NativePanelTestingWin::IsAnimatingBounds() const { 729 bool NativePanelTestingWin::IsAnimatingBounds() const {
730 return panel_browser_view_->IsAnimatingBounds(); 730 return panel_browser_view_->IsAnimatingBounds();
731 } 731 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel.cc ('k') | chrome/browser/ui/panels/panel_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698