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

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

Issue 877413004: Refactor away the Browser* dependency in exclusive_access (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update based on CR comments Created 5 years, 10 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
(Empty)
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 #ifndef CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_
5 #define CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_
6
7 #include "ui/gfx/geometry/rect.h"
8
9 class ExclusiveAccessManager;
10
11 namespace views {
12 class Widget;
13 }
14
15 // Context in which the exclusive access bubble view is initiated.
16 class ExclusiveAccessBubbleViewsContext {
17 public:
18 virtual ~ExclusiveAccessBubbleViewsContext() {}
19
20 // Returns ExclusiveAccessManager controlling exclusive access for the given
21 // webview.
22 virtual ExclusiveAccessManager* GetExclusiveAccessManager() = 0;
23
24 // Returns the Widget that hosts the view containing the exclusive access
25 // bubble.
26 virtual views::Widget* GetWidget() = 0;
27
28 // Returns true if immersive mode is enabled.
29 virtual bool IsImmersiveModeEnabled() = 0;
30
31 // Returns the bounds of the top level View in screen coordinate system.
32 virtual gfx::Rect GetTopContainerBoundsInScreen() = 0;
33 };
34
35 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698