| 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_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; | 92 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; |
| 93 virtual SkBitmap GetFaviconForTabIconView() OVERRIDE; | 93 virtual SkBitmap GetFaviconForTabIconView() OVERRIDE; |
| 94 | 94 |
| 95 // Overridden from AnimationDelegate: | 95 // Overridden from AnimationDelegate: |
| 96 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 96 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
| 97 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 97 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
| 98 virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE; | 98 virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE; |
| 99 | 99 |
| 100 private: | 100 private: |
| 101 friend class PanelBrowserViewTest; | 101 friend class PanelBrowserViewTest; |
| 102 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, CreatePanel); | |
| 103 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, ShowOrHideSettingsButton); | |
| 104 | 102 |
| 105 enum PaintState { | 103 enum PaintState { |
| 106 NOT_PAINTED, | 104 NOT_PAINTED, |
| 107 PAINT_AS_INACTIVE, | 105 PAINT_AS_INACTIVE, |
| 108 PAINT_AS_ACTIVE, | 106 PAINT_AS_ACTIVE, |
| 109 PAINT_FOR_ATTENTION | 107 PAINT_FOR_ATTENTION |
| 110 }; | 108 }; |
| 111 | 109 |
| 112 class MouseWatcher : public MessageLoopForUI::Observer { | 110 class MouseWatcher : public MessageLoopForUI::Observer { |
| 113 public: | 111 public: |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 // Used to animate the visibility change of settings button. | 195 // Used to animate the visibility change of settings button. |
| 198 scoped_ptr<ui::SlideAnimation> settings_button_animator_; | 196 scoped_ptr<ui::SlideAnimation> settings_button_animator_; |
| 199 gfx::Rect settings_button_full_bounds_; | 197 gfx::Rect settings_button_full_bounds_; |
| 200 gfx::Rect settings_button_zero_bounds_; | 198 gfx::Rect settings_button_zero_bounds_; |
| 201 bool is_settings_button_visible_; | 199 bool is_settings_button_visible_; |
| 202 | 200 |
| 203 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); | 201 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); |
| 204 }; | 202 }; |
| 205 | 203 |
| 206 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ | 204 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |