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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/views/exclusive_access_bubble_views_context_browser. h"
6
7 #include "chrome/browser/ui/tabs/tab_strip_model.h"
8 #include "chrome/browser/ui/views/frame/browser_view.h"
9 #include "chrome/browser/ui/views/frame/top_container_view.h"
10 #include "ui/views/widget/widget.h"
11
12 ExclusiveAccessBubbleViewsContextBrowser::
13 ExclusiveAccessBubbleViewsContextBrowser(BrowserView* browser_view)
14 : browser_view_(browser_view) {
15 }
16
17 ExclusiveAccessBubbleViewsContextBrowser::
18 ~ExclusiveAccessBubbleViewsContextBrowser() {
19 }
20
21 ExclusiveAccessManager*
22 ExclusiveAccessBubbleViewsContextBrowser::GetExclusiveAccessManager() {
23 return browser_view_->browser()->exclusive_access_manager();
24 }
25
26 views::Widget* ExclusiveAccessBubbleViewsContextBrowser::GetWidget() {
27 return browser_view_->GetWidget();
28 }
29
30 bool ExclusiveAccessBubbleViewsContextBrowser::IsImmersiveModeEnabled() {
31 return browser_view_->immersive_mode_controller()->IsEnabled();
32 }
33
34 gfx::Rect
35 ExclusiveAccessBubbleViewsContextBrowser::GetTopContainerBoundsInScreen() {
36 return browser_view_->top_container()->GetBoundsInScreen();
37 }
OLDNEW
« 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