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

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

Issue 962453002: Update permission bubble anchor when omnibar is hidden (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment Created 5 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/exclusive_access_bubble_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/exclusive_access_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698