OLD | NEW |
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 Loading... |
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 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 return expected_color == frame_view->title_label_->enabled_color(); | 719 return expected_color == frame_view->title_label_->enabled_color(); |
720 } | 720 } |
721 | 721 |
722 bool NativePanelTestingWin::IsWindowSizeKnown() const { | 722 bool NativePanelTestingWin::IsWindowSizeKnown() const { |
723 return true; | 723 return true; |
724 } | 724 } |
725 | 725 |
726 bool NativePanelTestingWin::IsAnimatingBounds() const { | 726 bool NativePanelTestingWin::IsAnimatingBounds() const { |
727 return panel_browser_view_->IsAnimatingBounds(); | 727 return panel_browser_view_->IsAnimatingBounds(); |
728 } | 728 } |
OLD | NEW |