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

Unified Diff: chrome/browser/ui/cocoa/browser_window_cocoa.mm

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/browser/ui/cocoa/browser_window_cocoa.h ('k') | chrome/browser/ui/cocoa/browser_window_controller.h » ('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.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
index 8dcd442196125acda83fe513301c3c86ca028fcd..89542e2fda287dba1af8ba6432f5a6b65810f42c 100644
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
@@ -27,6 +27,7 @@
#include "chrome/browser/ui/browser_commands_mac.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_window_state.h"
+#include "chrome/browser/ui/cocoa/accelerators_cocoa.h"
#import "chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.h"
#import "chrome/browser/ui/cocoa/browser/edit_search_engine_cocoa_controller.h"
#import "chrome/browser/ui/cocoa/browser_window_controller.h"
@@ -901,3 +902,42 @@ void BrowserWindowCocoa::HideDownloadShelf() {
if (statusBubble)
statusBubble->Hide();
}
+
+ExclusiveAccessManager* BrowserWindowCocoa::GetExclusiveAccessManager() {
+ return browser_->exclusive_access_manager();
+}
+
+gfx::NativeView BrowserWindowCocoa::GetNativeView() const {
+ return [window() contentView];
+}
+
+bool BrowserWindowCocoa::IsParentActive() const {
+ return IsActive();
+}
+
+bool BrowserWindowCocoa::GetAccelerator2(int cmd_id,
+ ui::Accelerator* accelerator) const {
+ *accelerator =
+ *AcceleratorsCocoa::GetInstance()->GetAcceleratorForCommand(cmd_id);
+ return true;
+}
+
+gfx::Point BrowserWindowCocoa::GetCursorScreenPoint() {
+ return gfx::Point();
+}
+
+bool BrowserWindowCocoa::HitTestPoint(const gfx::Point& point) const {
+ return true;
+}
+
+gfx::Rect BrowserWindowCocoa::GetClientAreaBoundsInScreen() const {
+ return GetBounds();
+}
+
+bool BrowserWindowCocoa::IsImmersiveModeEnabled() {
+ return false;
+}
+
+gfx::Rect BrowserWindowCocoa::GetTopContainerBoundsInScreen() {
+ return GetBounds();
+}
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.h ('k') | chrome/browser/ui/cocoa/browser_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698