Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Side by Side Diff: chrome/browser/ui/views/exclusive_access_bubble_views.h

Issue 1971033003: ExclusiveAccessBubbleViews: Remove unused code for old style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fullscreen-remove-old-theming
Patch Set: Remove unused include. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 29 matching lines...) Expand all
40 void UpdateContent(const GURL& url, ExclusiveAccessBubbleType bubble_type); 40 void UpdateContent(const GURL& url, ExclusiveAccessBubbleType bubble_type);
41 41
42 // Repositions |popup_| if it is visible. 42 // Repositions |popup_| if it is visible.
43 void RepositionIfVisible(); 43 void RepositionIfVisible();
44 44
45 views::View* GetView(); 45 views::View* GetView();
46 46
47 private: 47 private:
48 class ExclusiveAccessView; 48 class ExclusiveAccessView;
49 49
50 enum AnimatedAttribute {
51 ANIMATED_ATTRIBUTE_BOUNDS,
52 ANIMATED_ATTRIBUTE_OPACITY
53 };
54
55 // Returns the expected animated attribute based on flags and bubble type.
56 AnimatedAttribute ExpectedAnimationAttribute();
57
58 // Starts or stops polling the mouse location based on |popup_| and 50 // Starts or stops polling the mouse location based on |popup_| and
59 // |bubble_type_|. 51 // |bubble_type_|.
60 void UpdateMouseWatcher(); 52 void UpdateMouseWatcher();
61 53
62 // Updates any state which depends on whether the user is in immersive 54 // Updates any state which depends on whether the user is in immersive
63 // fullscreen. 55 // fullscreen.
64 void UpdateForImmersiveState(); 56 void UpdateForImmersiveState();
65 57
66 // Updates |popup|'s bounds given |animation_| and |animated_attribute_|. 58 // Updates |popup|'s bounds given |animation_| and |animated_attribute_|.
67 void UpdateBounds(); 59 void UpdateBounds();
(...skipping 21 matching lines...) Expand all
89 // views::WidgetObserver override: 81 // views::WidgetObserver override:
90 void OnWidgetVisibilityChanged(views::Widget* widget, bool visible) override; 82 void OnWidgetVisibilityChanged(views::Widget* widget, bool visible) override;
91 83
92 ExclusiveAccessBubbleViewsContext* const bubble_view_context_; 84 ExclusiveAccessBubbleViewsContext* const bubble_view_context_;
93 85
94 views::Widget* popup_; 86 views::Widget* popup_;
95 87
96 // Animation controlling showing/hiding of the exit bubble. 88 // Animation controlling showing/hiding of the exit bubble.
97 std::unique_ptr<gfx::SlideAnimation> animation_; 89 std::unique_ptr<gfx::SlideAnimation> animation_;
98 90
99 // Attribute animated by |animation_|.
100 AnimatedAttribute animated_attribute_;
101
102 // The contents of the popup. 91 // The contents of the popup.
103 ExclusiveAccessView* view_; 92 ExclusiveAccessView* view_;
104 93
105 content::NotificationRegistrar registrar_; 94 content::NotificationRegistrar registrar_;
106 95
107 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubbleViews); 96 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubbleViews);
108 }; 97 };
109 98
110 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_ 99 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698