| 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 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, ShowOrHideSettingsButton); | 49 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, ShowOrHideSettingsButton); |
| 50 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, SetBoundsAnimation); | 50 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, SetBoundsAnimation); |
| 51 | 51 |
| 52 // Overridden from BrowserView: | 52 // Overridden from BrowserView: |
| 53 virtual void Init() OVERRIDE; | 53 virtual void Init() OVERRIDE; |
| 54 virtual void Close() OVERRIDE; | 54 virtual void Close() OVERRIDE; |
| 55 virtual bool CanResize() const OVERRIDE; | 55 virtual bool CanResize() const OVERRIDE; |
| 56 virtual bool CanMaximize() const OVERRIDE; | 56 virtual bool CanMaximize() const OVERRIDE; |
| 57 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 57 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 58 virtual void UpdateTitleBar() OVERRIDE; | 58 virtual void UpdateTitleBar() OVERRIDE; |
| 59 virtual bool GetSavedWindowPlacement( | 59 virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const OVERRIDE; |
| 60 gfx::Rect* bounds, | |
| 61 ui::WindowShowState* show_state) const OVERRIDE; | |
| 62 virtual bool AcceleratorPressed(const views::Accelerator& accelerator) | 60 virtual bool AcceleratorPressed(const views::Accelerator& accelerator) |
| 63 OVERRIDE; | 61 OVERRIDE; |
| 64 | 62 |
| 65 // Overridden from views::WidgetDelegate: | 63 // Overridden from views::WidgetDelegate: |
| 66 virtual void OnDisplayChanged() OVERRIDE; | 64 virtual void OnDisplayChanged() OVERRIDE; |
| 67 virtual void OnWorkAreaChanged() OVERRIDE; | 65 virtual void OnWorkAreaChanged() OVERRIDE; |
| 68 virtual bool WillProcessWorkAreaChange() const OVERRIDE; | 66 virtual bool WillProcessWorkAreaChange() const OVERRIDE; |
| 69 | 67 |
| 70 // Overridden from views::Widget::Observer | 68 // Overridden from views::Widget::Observer |
| 71 virtual void OnWidgetActivationChanged(views::Widget* widget, | 69 virtual void OnWidgetActivationChanged(views::Widget* widget, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 bool is_drawing_attention_; | 135 bool is_drawing_attention_; |
| 138 | 136 |
| 139 // Timestamp to prevent minimizing the panel when the user clicks the titlebar | 137 // Timestamp to prevent minimizing the panel when the user clicks the titlebar |
| 140 // to clear the attension state. | 138 // to clear the attension state. |
| 141 base::TimeTicks attention_cleared_time_; | 139 base::TimeTicks attention_cleared_time_; |
| 142 | 140 |
| 143 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 141 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
| 144 }; | 142 }; |
| 145 | 143 |
| 146 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 144 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
| OLD | NEW |