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

Side by Side Diff: chrome/browser/ui/views/website_settings/permissions_bubble_view.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "chrome/browser/ui/website_settings/permission_bubble_view.h" 13 #include "chrome/browser/ui/website_settings/permission_bubble_view.h"
14 #include "ui/gfx/geometry/point.h" 14 #include "ui/gfx/geometry/point.h"
15 #include "ui/gfx/native_widget_types.h"
15 #include "ui/views/bubble/bubble_border.h" 16 #include "ui/views/bubble/bubble_border.h"
16 17
17 namespace views { 18 namespace views {
18 class View; 19 class View;
19 } 20 }
20 21
21 class Browser; 22 class Browser;
22 class PermissionsBubbleDialogDelegateView; 23 class PermissionsBubbleDialogDelegateView;
23 24
24 class PermissionBubbleViewViews : public PermissionBubbleView { 25 class PermissionBubbleViewViews : public PermissionBubbleView {
(...skipping 10 matching lines...) Expand all
35 bool IsVisible() override; 36 bool IsVisible() override;
36 void UpdateAnchorPosition() override; 37 void UpdateAnchorPosition() override;
37 gfx::NativeWindow GetNativeWindow() override; 38 gfx::NativeWindow GetNativeWindow() override;
38 39
39 void Closing(); 40 void Closing();
40 void Toggle(int index, bool value); 41 void Toggle(int index, bool value);
41 void Accept(); 42 void Accept();
42 void Deny(); 43 void Deny();
43 44
44 private: 45 private:
45 // These three functions have separate implementations for Views-based and 46 // These four methods have separate implementations for Views-based and
46 // Cocoa-based browsers, to allow this bubble to be used in either. 47 // Cocoa-based browsers, to allow this bubble to be used in either.
47 views::View* GetAnchorView(); 48 views::View* GetAnchorView();
48 gfx::Point GetAnchorPoint(); 49 gfx::Point GetAnchorPoint();
49 views::BubbleBorder::Arrow GetAnchorArrow(); 50 views::BubbleBorder::Arrow GetAnchorArrow();
51 gfx::NativeView GetExclusiveAccessNativeView();
50 52
51 Browser* browser_; 53 Browser* browser_;
52 Delegate* delegate_; 54 Delegate* delegate_;
53 PermissionsBubbleDialogDelegateView* bubble_delegate_; 55 PermissionsBubbleDialogDelegateView* bubble_delegate_;
54 56
55 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleViewViews); 57 DISALLOW_COPY_AND_ASSIGN(PermissionBubbleViewViews);
56 }; 58 };
57 59
58 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_ 60 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698