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

Unified Diff: chrome/browser/ui/cocoa/browser_window_cocoa.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
« no previous file with comments | « chrome/app/nibs/ExclusiveAccessBubble.xib ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_cocoa.h
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.h b/chrome/browser/ui/cocoa/browser_window_cocoa.h
index 214e45d8297f991d53c8c10f40d5457e038ba13e..6a8e7e8421e100b378730238bf281f10d0b7ae5d 100644
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.h
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.h
@@ -14,6 +14,7 @@
#include "chrome/browser/ui/exclusive_access/exclusive_access_context.h"
#include "chrome/browser/ui/search/search_model_observer.h"
#include "chrome/browser/ui/tabs/tab_utils.h"
+#include "chrome/browser/ui/views/exclusive_access_bubble_views_context.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "ui/base/ui_base_types.h"
@@ -37,6 +38,7 @@ class Extension;
class BrowserWindowCocoa
: public BrowserWindow,
public ExclusiveAccessContext,
+ public ExclusiveAccessBubbleViewsContext,
public extensions::ExtensionKeybindingRegistry::Delegate,
public SearchModelObserver {
public:
@@ -175,6 +177,17 @@ class BrowserWindowCocoa
void UnhideDownloadShelf() override;
void HideDownloadShelf() override;
+ // Overridden from ExclusiveAccessBubbleViewsContext:
+ ExclusiveAccessManager* GetExclusiveAccessManager() override;
+ gfx::NativeView GetNativeView() const override;
+ bool IsParentActive() const override;
+ bool GetAccelerator2(int cmd_id, ui::Accelerator* accelerator) const override;
+ gfx::Point GetCursorScreenPoint() override;
+ bool HitTestPoint(const gfx::Point& point) const override;
+ gfx::Rect GetClientAreaBoundsInScreen() const override;
+ bool IsImmersiveModeEnabled() override;
+ gfx::Rect GetTopContainerBoundsInScreen() override;
+
// Overridden from ExtensionKeybindingRegistry::Delegate:
extensions::ActiveTabPermissionGranter* GetActiveTabPermissionGranter()
override;
« no previous file with comments | « chrome/app/nibs/ExclusiveAccessBubble.xib ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698