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

Unified Diff: chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h

Issue 1654723002: Enable showing the toolkit-views simplified fullscreen UI on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20150112-MacViews-NewFullscreenBubble
Patch Set: Update section comments 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 | « no previous file | chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h
diff --git a/chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h b/chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h
index 49a2e9445c3c133116147bec4e408c6d0377d801..1cd03e32dae3db5fab2e7a9fe650e72b25505681 100644
--- a/chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h
+++ b/chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h
@@ -12,18 +12,24 @@
#import "base/mac/scoped_nsobject.h"
#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
#include "chrome/browser/ui/exclusive_access/exclusive_access_context.h"
+#include "chrome/browser/ui/views/exclusive_access_bubble_views_context.h"
+#include "ui/base/accelerators/accelerator.h"
class Browser;
class BrowserWindow;
@class BrowserWindowController;
+class ExclusiveAccessBubbleViews;
@class ExclusiveAccessBubbleWindowController;
class GURL;
// Component placed into a browser window controller to manage communication
// with the exclusive access bubble, which appears for events such as entering
// fullscreen.
-class ExclusiveAccessController : public ExclusiveAccessContext {
+class ExclusiveAccessController : public ExclusiveAccessContext,
+ public ui::AcceleratorProvider,
+ public ExclusiveAccessBubbleViewsContext {
public:
ExclusiveAccessController(BrowserWindowController* controller,
Browser* browser);
@@ -63,6 +69,20 @@ class ExclusiveAccessController : public ExclusiveAccessContext {
void UnhideDownloadShelf() override;
void HideDownloadShelf() override;
+ // ui::AcceleratorProvider:
+ bool GetAcceleratorForCommandId(int command_id,
+ ui::Accelerator* accelerator) override;
+
+ // ExclusiveAccessBubbleViewsContext:
+ ExclusiveAccessManager* GetExclusiveAccessManager() override;
+ views::Widget* GetBubbleAssociatedWidget() override;
+ ui::AcceleratorProvider* GetAcceleratorProvider() override;
+ gfx::NativeView GetBubbleParentView() const override;
+ gfx::Point GetCursorPointInParent() const override;
+ gfx::Rect GetClientAreaBoundsInScreen() const override;
+ bool IsImmersiveModeEnabled() override;
+ gfx::Rect GetTopContainerBoundsInScreen() override;
+
private:
BrowserWindow* GetBrowserWindow() const;
@@ -75,6 +95,7 @@ class ExclusiveAccessController : public ExclusiveAccessContext {
GURL url_;
ExclusiveAccessBubbleType bubble_type_;
+ scoped_ptr<ExclusiveAccessBubbleViews> views_bubble_;
base::scoped_nsobject<ExclusiveAccessBubbleWindowController> cocoa_bubble_;
DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessController);
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698