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

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

Issue 58853004: [win8] Force browsers created with Chrome in Metro mode to be on the Ash desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move from browser_commands to BrowserWindow Created 7 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_frame_ash.h" 5 #include "chrome/browser/ui/views/frame/browser_frame_ash.h"
6 6
7 #include "ash/wm/window_state.h" 7 #include "ash/wm/window_state.h"
8 #include "ash/wm/window_state_delegate.h" 8 #include "ash/wm/window_state_delegate.h"
9 #include "ash/wm/window_util.h" 9 #include "ash/wm/window_util.h"
10 #include "chrome/browser/ui/browser_commands.h" 10 #include "chrome/browser/ui/browser_commands.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 return false; 207 return false;
208 } 208 }
209 209
210 int BrowserFrameAsh::GetMinimizeButtonOffset() const { 210 int BrowserFrameAsh::GetMinimizeButtonOffset() const {
211 return 0; 211 return 0;
212 } 212 }
213 213
214 void BrowserFrameAsh::TabStripDisplayModeChanged() { 214 void BrowserFrameAsh::TabStripDisplayModeChanged() {
215 } 215 }
216 216
217 BrowserFrameAsh::~BrowserFrameAsh() {
218 }
219
217 /////////////////////////////////////////////////////////////////////////////// 220 ///////////////////////////////////////////////////////////////////////////////
218 // BrowserFrameAsh, private: 221 // BrowserFrameAsh, private:
219 222
220 BrowserFrameAsh::~BrowserFrameAsh() {
221 }
222
223 void BrowserFrameAsh::SetWindowAutoManaged() { 223 void BrowserFrameAsh::SetWindowAutoManaged() {
224 if (browser_view_->browser()->type() != Browser::TYPE_POPUP || 224 if (browser_view_->browser()->type() != Browser::TYPE_POPUP ||
225 browser_view_->browser()->is_app()) { 225 browser_view_->browser()->is_app()) {
226 ash::wm::GetWindowState(GetNativeWindow())-> 226 ash::wm::GetWindowState(GetNativeWindow())->
227 set_window_position_managed(true); 227 set_window_position_managed(true);
228 } 228 }
229 } 229 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame_ash.h ('k') | chrome/browser/ui/views/frame/browser_frame_ashwin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698