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

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

Issue 1579813002: PoC: Using the toolkit-views fullscreen access bubble on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refine Created 4 years, 11 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) 2015 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_ 4 #ifndef CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_
5 #define CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_ 5 #define CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_
6 6
7 #include "ui/gfx/geometry/rect.h" 7 #include "ui/gfx/geometry/rect.h"
8 #include "ui/gfx/native_widget_types.h"
8 9
9 class ExclusiveAccessManager; 10 class ExclusiveAccessManager;
10 11
12 namespace ui {
13 class Accelerator;
14 }
15
11 namespace views { 16 namespace views {
12 class Widget; 17 class Widget;
13 } 18 }
14 19
15 // Context in which the exclusive access bubble view is initiated. 20 // Context in which the exclusive access bubble view is initiated.
16 class ExclusiveAccessBubbleViewsContext { 21 class ExclusiveAccessBubbleViewsContext {
17 public: 22 public:
18 virtual ~ExclusiveAccessBubbleViewsContext() {} 23 virtual ~ExclusiveAccessBubbleViewsContext() {}
19 24
20 // Returns ExclusiveAccessManager controlling exclusive access for the given 25 // Returns ExclusiveAccessManager controlling exclusive access for the given
21 // webview. 26 // webview.
22 virtual ExclusiveAccessManager* GetExclusiveAccessManager() = 0; 27 virtual ExclusiveAccessManager* GetExclusiveAccessManager() = 0;
23 28
24 // Returns the Widget that hosts the view containing the exclusive access 29 virtual gfx::NativeView GetNativeView() const = 0;
25 // bubble. 30 virtual bool IsParentActive() const = 0;
26 virtual views::Widget* GetBubbleAssociatedWidget() = 0; 31 virtual bool GetAccelerator2(int cmd_id,
32 ui::Accelerator* accelerator) const = 0;
33 virtual gfx::Point GetCursorScreenPoint() = 0;
34 virtual bool HitTestPoint(const gfx::Point& point) const = 0;
35 virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0;
27 36
28 // Returns true if immersive mode is enabled. 37 // Returns true if immersive mode is enabled.
29 virtual bool IsImmersiveModeEnabled() = 0; 38 virtual bool IsImmersiveModeEnabled() = 0;
30 39
31 // Returns the bounds of the top level View in screen coordinate system. 40 // Returns the bounds of the top level View in screen coordinate system.
32 virtual gfx::Rect GetTopContainerBoundsInScreen() = 0; 41 virtual gfx::Rect GetTopContainerBoundsInScreen() = 0;
33 }; 42 };
34 43
35 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_ 44 #endif // CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/exclusive_access_bubble_views.cc ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698