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

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

Issue 2115433002: Ensure permission bubble is stacked below the exclusive access bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-bubble-detach-from-fullscreen
Patch Set: Fix Mac compile. Created 4 years, 5 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 const GURL& url, 40 const GURL& url,
41 ExclusiveAccessBubbleType bubble_type); 41 ExclusiveAccessBubbleType bubble_type);
42 ~ExclusiveAccessBubbleViews() override; 42 ~ExclusiveAccessBubbleViews() override;
43 43
44 void UpdateContent(const GURL& url, ExclusiveAccessBubbleType bubble_type); 44 void UpdateContent(const GURL& url, ExclusiveAccessBubbleType bubble_type);
45 45
46 // Repositions |popup_| if it is visible. 46 // Repositions |popup_| if it is visible.
47 void RepositionIfVisible(); 47 void RepositionIfVisible();
48 48
49 views::View* GetView(); 49 views::View* GetView();
50 views::Widget* GetWidget() { return popup_; }
50 51
51 private: 52 private:
52 // Starts or stops polling the mouse location based on |popup_| and 53 // Starts or stops polling the mouse location based on |popup_| and
53 // |bubble_type_|. 54 // |bubble_type_|.
54 void UpdateMouseWatcher(); 55 void UpdateMouseWatcher();
55 56
56 // Updates |popup|'s bounds given |animation_| and |animated_attribute_|. 57 // Updates |popup|'s bounds given |animation_| and |animated_attribute_|.
57 void UpdateBounds(); 58 void UpdateBounds();
58 59
59 void UpdateViewContent(ExclusiveAccessBubbleType bubble_type); 60 void UpdateViewContent(ExclusiveAccessBubbleType bubble_type);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // The contents of the popup. 95 // The contents of the popup.
95 SubtleNotificationView* view_; 96 SubtleNotificationView* view_;
96 base::string16 browser_fullscreen_exit_accelerator_; 97 base::string16 browser_fullscreen_exit_accelerator_;
97 98
98 content::NotificationRegistrar registrar_; 99 content::NotificationRegistrar registrar_;
99 100
100 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubbleViews); 101 DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessBubbleViews);
101 }; 102 };
102 103
103 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_ 104 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698