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

Unified Diff: chrome/browser/ui/views/exclusive_access_bubble_views_context_browser.cc

Issue 944123003: Hack webapp to request keyboard events on connection. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hacked up chromoting client and using mouse lock instead of keyboard lock for bubble. Created 5 years, 10 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_browser.cc
diff --git a/chrome/browser/ui/views/exclusive_access_bubble_views_context_browser.cc b/chrome/browser/ui/views/exclusive_access_bubble_views_context_browser.cc
new file mode 100644
index 0000000000000000000000000000000000000000..50d05a4b628cef41aee01ecda7f79d9a5e4d5359
--- /dev/null
+++ b/chrome/browser/ui/views/exclusive_access_bubble_views_context_browser.cc
@@ -0,0 +1,37 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/views/exclusive_access_bubble_views_context_browser.h"
+
+#include "chrome/browser/ui/tabs/tab_strip_model.h"
+#include "chrome/browser/ui/views/frame/browser_view.h"
+#include "chrome/browser/ui/views/frame/top_container_view.h"
+#include "ui/views/widget/widget.h"
+
+ExclusiveAccessBubbleViewsContextBrowser::
+ ExclusiveAccessBubbleViewsContextBrowser(BrowserView* browser_view)
+ : browser_view_(browser_view) {
+}
+
+ExclusiveAccessBubbleViewsContextBrowser::
+ ~ExclusiveAccessBubbleViewsContextBrowser() {
+}
+
+ExclusiveAccessManager*
+ExclusiveAccessBubbleViewsContextBrowser::GetExclusiveAccessManager() {
+ return browser_view_->browser()->exclusive_access_manager();
+}
+
+views::Widget* ExclusiveAccessBubbleViewsContextBrowser::GetWidget() {
+ return browser_view_->GetWidget();
+}
+
+bool ExclusiveAccessBubbleViewsContextBrowser::IsImmersiveModeEnabled() {
+ return browser_view_->immersive_mode_controller()->IsEnabled();
+}
+
+gfx::Rect
+ExclusiveAccessBubbleViewsContextBrowser::GetTopContainerBoundsInScreen() {
+ return browser_view_->top_container()->GetBoundsInScreen();
+}
« no previous file with comments | « chrome/browser/ui/views/exclusive_access_bubble_views_context_browser.h ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698