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

Side by Side Diff: chrome/browser/ui/exclusive_access/exclusive_access_context_browser.cc

Issue 949553002: Start using the controller in app's view. Base URL: https://chromium.googlesource.com/chromium/src.git@fsRefactor
Patch Set: 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
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/exclusive_access/exclusive_access_context_browser.h" 5 #include "chrome/browser/ui/exclusive_access/exclusive_access_context_browser.h"
6 6
7 #include "chrome/browser/download/download_shelf.h" 7 #include "chrome/browser/download/download_shelf.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 #include "chrome/browser/ui/status_bubble.h" 10 #include "chrome/browser/ui/status_bubble.h"
11 #include "chrome/browser/ui/tabs/tab_strip_model.h" 11 #include "chrome/browser/ui/tabs/tab_strip_model.h"
12 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
13 13
14 using content::WebContents; 14 using content::WebContents;
15 15
16 ExclusiveAccessContextBrowser::ExclusiveAccessContextBrowser(Browser* browser) 16 ExclusiveAccessContextBrowser::ExclusiveAccessContextBrowser(Browser* browser)
17 : browser_(browser) { 17 : browser_(browser) {
18 } 18 }
19 19
20 ExclusiveAccessContextBrowser::~ExclusiveAccessContextBrowser() { 20 ExclusiveAccessContextBrowser::~ExclusiveAccessContextBrowser() {
21 } 21 }
22 22
23 Profile* ExclusiveAccessContextBrowser::GetProfile() { 23 Profile* ExclusiveAccessContextBrowser::GetProfile() {
24 return browser_->profile(); 24 return browser_->profile();
25 } 25 }
26 26
27 bool ExclusiveAccessContextBrowser::IsFullscreen() { 27 bool ExclusiveAccessContextBrowser::IsFullscreen() const {
28 return browser_->window()->IsFullscreen(); 28 return browser_->window()->IsFullscreen();
29 } 29 }
30 30
31 bool ExclusiveAccessContextBrowser::IsFullscreenWithToolbar() { 31 bool ExclusiveAccessContextBrowser::IsFullscreenWithToolbar() {
32 return browser_->window()->IsFullscreenWithToolbar(); 32 return browser_->window()->IsFullscreenWithToolbar();
33 } 33 }
34 34
35 bool ExclusiveAccessContextBrowser::SupportsFullscreenWithToolbar() { 35 bool ExclusiveAccessContextBrowser::SupportsFullscreenWithToolbar() {
36 return browser_->window()->SupportsFullscreenWithToolbar(); 36 return browser_->window()->SupportsFullscreenWithToolbar();
37 } 37 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void ExclusiveAccessContextBrowser::UpdateDownloadShelf(bool unhide) { 79 void ExclusiveAccessContextBrowser::UpdateDownloadShelf(bool unhide) {
80 BrowserWindow* const window = browser_->window(); 80 BrowserWindow* const window = browser_->window();
81 if (unhide) { 81 if (unhide) {
82 window->GetDownloadShelf()->Unhide(); 82 window->GetDownloadShelf()->Unhide();
83 } else { 83 } else {
84 window->GetDownloadShelf()->Hide(); 84 window->GetDownloadShelf()->Hide();
85 if (window->GetStatusBubble()) 85 if (window->GetStatusBubble())
86 window->GetStatusBubble()->Hide(); 86 window->GetStatusBubble()->Hide();
87 } 87 }
88 } 88 }
89
90 bool ExclusiveAccessContextBrowser::UseCallbackForMouseLock() {
91 return false;
92 }
93
94 bool ExclusiveAccessContextBrowser::MouseLockCallback(bool acquired) {
95 return false;
96 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698