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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/exclusive_access_bubble_views_context.h
diff --git a/chrome/browser/ui/views/exclusive_access_bubble_views_context.h b/chrome/browser/ui/views/exclusive_access_bubble_views_context.h
index 5d0f3d457f3c3e1c7b8bb723e0cc4ef771c23718..70cf3a48f2bb9acea772302ad71eb18ffa703102 100644
--- a/chrome/browser/ui/views/exclusive_access_bubble_views_context.h
+++ b/chrome/browser/ui/views/exclusive_access_bubble_views_context.h
@@ -5,9 +5,14 @@
#define CHROME_BROWSER_UI_VIEWS_EXCLUSIVE_ACCESS_BUBBLE_VIEWS_CONTEXT_H_
#include "ui/gfx/geometry/rect.h"
+#include "ui/gfx/native_widget_types.h"
class ExclusiveAccessManager;
+namespace ui {
+class Accelerator;
+}
+
namespace views {
class Widget;
}
@@ -21,9 +26,13 @@ class ExclusiveAccessBubbleViewsContext {
// webview.
virtual ExclusiveAccessManager* GetExclusiveAccessManager() = 0;
- // Returns the Widget that hosts the view containing the exclusive access
- // bubble.
- virtual views::Widget* GetBubbleAssociatedWidget() = 0;
+ virtual gfx::NativeView GetNativeView() const = 0;
+ virtual bool IsParentActive() const = 0;
+ virtual bool GetAccelerator2(int cmd_id,
+ ui::Accelerator* accelerator) const = 0;
+ virtual gfx::Point GetCursorScreenPoint() = 0;
+ virtual bool HitTestPoint(const gfx::Point& point) const = 0;
+ virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0;
// Returns true if immersive mode is enabled.
virtual bool IsImmersiveModeEnabled() = 0;
« 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