| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 views::View* GetView(); | 44 views::View* GetView(); |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 class ExclusiveAccessView; | 47 class ExclusiveAccessView; |
| 48 | 48 |
| 49 enum AnimatedAttribute { | 49 enum AnimatedAttribute { |
| 50 ANIMATED_ATTRIBUTE_BOUNDS, | 50 ANIMATED_ATTRIBUTE_BOUNDS, |
| 51 ANIMATED_ATTRIBUTE_OPACITY | 51 ANIMATED_ATTRIBUTE_OPACITY |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 // Returns the expected animated attribute based on flags and bubble type. |
| 55 AnimatedAttribute ExpectedAnimationAttribute(); |
| 56 |
| 54 // Starts or stops polling the mouse location based on |popup_| and | 57 // Starts or stops polling the mouse location based on |popup_| and |
| 55 // |bubble_type_|. | 58 // |bubble_type_|. |
| 56 void UpdateMouseWatcher(); | 59 void UpdateMouseWatcher(); |
| 57 | 60 |
| 58 // Updates any state which depends on whether the user is in immersive | 61 // Updates any state which depends on whether the user is in immersive |
| 59 // fullscreen. | 62 // fullscreen. |
| 60 void UpdateForImmersiveState(); | 63 void UpdateForImmersiveState(); |
| 61 | 64 |
| 62 // Updates |popup|'s bounds given |animation_| and |animated_attribute_|. | 65 // Updates |popup|'s bounds given |animation_| and |animated_attribute_|. |
| 63 void UpdateBounds(); | 66 void UpdateBounds(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 100 |
| 98 // The contents of the popup. | 101 // The contents of the popup. |
| 99 ExclusiveAccessView* view_; | 102 ExclusiveAccessView* view_; |
| 100 | 103 |
| 101 content::NotificationRegistrar registrar_; | 104 content::NotificationRegistrar registrar_; |
| 102 | 105 |
| 103 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubbleViews); | 106 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubbleViews); |
| 104 }; | 107 }; |
| 105 | 108 |
| 106 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_ | 109 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_ |
| OLD | NEW |