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 #ifndef CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // |bubble_type_|. | 55 // |bubble_type_|. |
56 void UpdateMouseWatcher(); | 56 void UpdateMouseWatcher(); |
57 | 57 |
58 // Updates any state which depends on whether the user is in immersive | 58 // Updates any state which depends on whether the user is in immersive |
59 // fullscreen. | 59 // fullscreen. |
60 void UpdateForImmersiveState(); | 60 void UpdateForImmersiveState(); |
61 | 61 |
62 // Updates |popup|'s bounds given |animation_| and |animated_attribute_|. | 62 // Updates |popup|'s bounds given |animation_| and |animated_attribute_|. |
63 void UpdateBounds(); | 63 void UpdateBounds(); |
64 | 64 |
65 // Returns the root view containing |browser_view_|. | |
66 views::View* GetBrowserRootView() const; | |
67 | |
68 // ExclusiveAccessBubble overrides: | 65 // ExclusiveAccessBubble overrides: |
69 void AnimationProgressed(const gfx::Animation* animation) override; | 66 void AnimationProgressed(const gfx::Animation* animation) override; |
70 void AnimationEnded(const gfx::Animation* animation) override; | 67 void AnimationEnded(const gfx::Animation* animation) override; |
71 gfx::Rect GetPopupRect(bool ignore_animation_state) const override; | 68 gfx::Rect GetPopupRect(bool ignore_animation_state) const override; |
72 gfx::Point GetCursorScreenPoint() override; | 69 gfx::Point GetCursorScreenPoint() override; |
73 bool WindowContainsPoint(gfx::Point pos) override; | 70 bool WindowContainsPoint(gfx::Point pos) override; |
74 bool IsWindowActive() override; | 71 bool IsWindowActive() override; |
75 void Hide() override; | 72 void Hide() override; |
76 void Show() override; | 73 void Show() override; |
77 bool IsAnimating() override; | 74 bool IsAnimating() override; |
(...skipping 19 matching lines...) Expand all Loading... |
97 | 94 |
98 // The contents of the popup. | 95 // The contents of the popup. |
99 ExclusiveAccessView* view_; | 96 ExclusiveAccessView* view_; |
100 | 97 |
101 content::NotificationRegistrar registrar_; | 98 content::NotificationRegistrar registrar_; |
102 | 99 |
103 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubbleViews); | 100 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubbleViews); |
104 }; | 101 }; |
105 | 102 |
106 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_ | 103 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_ |
OLD | NEW |