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

Side by Side Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 1650483002: Refactor: Untangle Mac's ExclusiveAccessContext from BrowserWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename accessor Created 4 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
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/views/frame/browser_view.h" 5 #include "chrome/browser/ui/views/frame/browser_view.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <algorithm> 8 #include <algorithm>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 } 1027 }
1028 1028
1029 bool BrowserView::IsFullscreen() const { 1029 bool BrowserView::IsFullscreen() const {
1030 return frame_->IsFullscreen(); 1030 return frame_->IsFullscreen();
1031 } 1031 }
1032 1032
1033 bool BrowserView::IsFullscreenBubbleVisible() const { 1033 bool BrowserView::IsFullscreenBubbleVisible() const {
1034 return exclusive_access_bubble_ != nullptr; 1034 return exclusive_access_bubble_ != nullptr;
1035 } 1035 }
1036 1036
1037 bool BrowserView::SupportsFullscreenWithToolbar() const {
1038 return false;
1039 }
1040
1041 void BrowserView::UpdateFullscreenWithToolbar(bool with_toolbar) {
1042 // This is currently a Mac only feature.
1043 NOTIMPLEMENTED();
1044 }
1045
1046 void BrowserView::ToggleFullscreenToolbar() {
1047 // This is currently a Mac only feature.
1048 NOTIMPLEMENTED();
1049 }
1050
1051 bool BrowserView::IsFullscreenWithToolbar() const {
1052 return false;
1053 }
1054
1055 bool BrowserView::ShouldHideFullscreenToolbar() const {
1056 return false;
1057 }
1058
1059 #if defined(OS_WIN) 1037 #if defined(OS_WIN)
1060 void BrowserView::SetMetroSnapMode(bool enable) { 1038 void BrowserView::SetMetroSnapMode(bool enable) {
1061 LOCAL_HISTOGRAM_COUNTS("Metro.SnapModeToggle", enable); 1039 LOCAL_HISTOGRAM_COUNTS("Metro.SnapModeToggle", enable);
1062 ProcessFullscreen(enable, METRO_SNAP_FULLSCREEN, GURL(), 1040 ProcessFullscreen(enable, METRO_SNAP_FULLSCREEN, GURL(),
1063 EXCLUSIVE_ACCESS_BUBBLE_TYPE_NONE); 1041 EXCLUSIVE_ACCESS_BUBBLE_TYPE_NONE);
1064 } 1042 }
1065 1043
1066 bool BrowserView::IsInMetroSnapMode() const { 1044 bool BrowserView::IsInMetroSnapMode() const {
1067 return false; 1045 return false;
1068 } 1046 }
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after
2684 return immersive_mode_controller()->IsEnabled(); 2662 return immersive_mode_controller()->IsEnabled();
2685 } 2663 }
2686 2664
2687 views::Widget* BrowserView::GetBubbleAssociatedWidget() { 2665 views::Widget* BrowserView::GetBubbleAssociatedWidget() {
2688 return GetWidget(); 2666 return GetWidget();
2689 } 2667 }
2690 2668
2691 gfx::Rect BrowserView::GetTopContainerBoundsInScreen() { 2669 gfx::Rect BrowserView::GetTopContainerBoundsInScreen() {
2692 return top_container_->GetBoundsInScreen(); 2670 return top_container_->GetBoundsInScreen();
2693 } 2671 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698