| 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 GetSavedWindowBounds(gfx::Rect* bounds) const OVERRIDE; | 59 virtual bool GetSavedWindowPlacement( |
| 60 gfx::Rect* bounds, |
| 61 ui::WindowShowState* show_state) const OVERRIDE; |
| 60 virtual bool AcceleratorPressed(const views::Accelerator& accelerator) | 62 virtual bool AcceleratorPressed(const views::Accelerator& accelerator) |
| 61 OVERRIDE; | 63 OVERRIDE; |
| 62 | 64 |
| 63 // Overridden from views::WidgetDelegate: | 65 // Overridden from views::WidgetDelegate: |
| 64 virtual void OnDisplayChanged() OVERRIDE; | 66 virtual void OnDisplayChanged() OVERRIDE; |
| 65 virtual void OnWorkAreaChanged() OVERRIDE; | 67 virtual void OnWorkAreaChanged() OVERRIDE; |
| 66 virtual bool WillProcessWorkAreaChange() const OVERRIDE; | 68 virtual bool WillProcessWorkAreaChange() const OVERRIDE; |
| 67 | 69 |
| 68 // Overridden from views::Widget::Observer | 70 // Overridden from views::Widget::Observer |
| 69 virtual void OnWidgetActivationChanged(views::Widget* widget, | 71 virtual void OnWidgetActivationChanged(views::Widget* widget, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 bool is_drawing_attention_; | 137 bool is_drawing_attention_; |
| 136 | 138 |
| 137 // Timestamp to prevent minimizing the panel when the user clicks the titlebar | 139 // Timestamp to prevent minimizing the panel when the user clicks the titlebar |
| 138 // to clear the attension state. | 140 // to clear the attension state. |
| 139 base::TimeTicks attention_cleared_time_; | 141 base::TimeTicks attention_cleared_time_; |
| 140 | 142 |
| 141 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 143 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
| 142 }; | 144 }; |
| 143 | 145 |
| 144 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 146 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
| OLD | NEW |