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

Side by Side Diff: chrome/browser/ui/website_settings/permission_bubble_view.h

Issue 2081103002: Rename PermissionBubbleManager to PermissionRequestManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments 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_WEBSITE_SETTINGS_PERMISSION_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
13 13
14 class Browser; 14 class Browser;
15 class PermissionBubbleManager; 15 class PermissionRequestManager;
16 class PermissionBubbleRequest; 16 class PermissionBubbleRequest;
17 17
18 // This class is the platform-independent interface through which the permission 18 // This class is the platform-independent interface through which the permission
19 // bubble managers (which are one per tab) communicate to the UI surface. 19 // bubble managers (which are one per tab) communicate to the UI surface.
20 // When the visible tab changes, the UI code must provide an object of this type 20 // When the visible tab changes, the UI code must provide an object of this type
21 // to the manager for the visible tab. 21 // to the manager for the visible tab.
22 class PermissionBubbleView { 22 class PermissionBubbleView {
23 public: 23 public:
24 // The delegate will receive events caused by user action which need to 24 // The delegate will receive events caused by user action which need to
25 // be persisted in the per-tab UI state. 25 // be persisted in the per-tab UI state.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // Updates where the bubble should be anchored. ex: fullscreen toggle. 67 // Updates where the bubble should be anchored. ex: fullscreen toggle.
68 virtual void UpdateAnchorPosition() = 0; 68 virtual void UpdateAnchorPosition() = 0;
69 69
70 // Returns a reference to this bubble's native window. 70 // Returns a reference to this bubble's native window.
71 // TODO(hcarmona): Remove this as part of the bubble API work. 71 // TODO(hcarmona): Remove this as part of the bubble API work.
72 virtual gfx::NativeWindow GetNativeWindow() = 0; 72 virtual gfx::NativeWindow GetNativeWindow() = 0;
73 }; 73 };
74 74
75 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_VIEW_H_ 75 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/website_settings/permission_bubble_manager_unittest.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698