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/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble.h" | 10 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 ExclusiveAccessBubbleViews(ExclusiveAccessBubbleViewsContext* context, | 33 ExclusiveAccessBubbleViews(ExclusiveAccessBubbleViewsContext* context, |
34 const GURL& url, | 34 const GURL& url, |
35 ExclusiveAccessBubbleType bubble_type); | 35 ExclusiveAccessBubbleType bubble_type); |
36 ~ExclusiveAccessBubbleViews() override; | 36 ~ExclusiveAccessBubbleViews() override; |
37 | 37 |
38 void UpdateContent(const GURL& url, ExclusiveAccessBubbleType bubble_type); | 38 void UpdateContent(const GURL& url, ExclusiveAccessBubbleType bubble_type); |
39 | 39 |
40 // Repositions |popup_| if it is visible. | 40 // Repositions |popup_| if it is visible. |
41 void RepositionIfVisible(); | 41 void RepositionIfVisible(); |
42 | 42 |
| 43 views::View* GetView(); |
| 44 |
43 private: | 45 private: |
44 class ExclusiveAccessView; | 46 class ExclusiveAccessView; |
45 | 47 |
46 enum AnimatedAttribute { | 48 enum AnimatedAttribute { |
47 ANIMATED_ATTRIBUTE_BOUNDS, | 49 ANIMATED_ATTRIBUTE_BOUNDS, |
48 ANIMATED_ATTRIBUTE_OPACITY | 50 ANIMATED_ATTRIBUTE_OPACITY |
49 }; | 51 }; |
50 | 52 |
51 // Starts or stops polling the mouse location based on |popup_| and | 53 // Starts or stops polling the mouse location based on |popup_| and |
52 // |bubble_type_|. | 54 // |bubble_type_|. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 96 |
95 // The contents of the popup. | 97 // The contents of the popup. |
96 ExclusiveAccessView* view_; | 98 ExclusiveAccessView* view_; |
97 | 99 |
98 content::NotificationRegistrar registrar_; | 100 content::NotificationRegistrar registrar_; |
99 | 101 |
100 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubbleViews); | 102 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubbleViews); |
101 }; | 103 }; |
102 | 104 |
103 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_ | 105 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_ |
OLD | NEW |