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

Side by Side Diff: chrome/browser/ui/window_sizer/window_sizer.cc

Issue 1926913002: Moves more code to ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor_workspace_layout_manager
Patch Set: merge to trunk Created 4 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/window_sizer/window_sizer.h" 5 #include "chrome/browser/ui/window_sizer/window_sizer.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/ui/browser.h" 15 #include "chrome/browser/ui/browser.h"
16 #include "chrome/browser/ui/browser_list.h" 16 #include "chrome/browser/ui/browser_list.h"
17 #include "chrome/browser/ui/browser_window.h" 17 #include "chrome/browser/ui/browser_window.h"
18 #include "chrome/browser/ui/browser_window_state.h" 18 #include "chrome/browser/ui/browser_window_state.h"
19 #include "chrome/common/chrome_switches.h" 19 #include "chrome/common/chrome_switches.h"
20 #include "components/prefs/pref_service.h" 20 #include "components/prefs/pref_service.h"
21 #include "ui/base/ui_base_switches.h" 21 #include "ui/base/ui_base_switches.h"
22 #include "ui/gfx/screen.h" 22 #include "ui/gfx/screen.h"
23 23
24 #if defined(USE_ASH) 24 #if defined(USE_ASH)
25 #include "ash/shell.h" 25 #include "ash/shell.h"
26 #include "ash/wm/window_positioner.h" 26 #include "ash/wm/common/window_positioner.h"
27 #include "chrome/browser/ui/ash/ash_util.h" 27 #include "chrome/browser/ui/ash/ash_util.h"
28 #endif 28 #endif
29 29
30 namespace { 30 namespace {
31 31
32 // Minimum height of the visible part of a window. 32 // Minimum height of the visible part of a window.
33 const int kMinVisibleHeight = 30; 33 const int kMinVisibleHeight = 30;
34 // Minimum width of the visible part of a window. 34 // Minimum width of the visible part of a window.
35 const int kMinVisibleWidth = 30; 35 const int kMinVisibleWidth = 30;
36 36
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 426 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
427 switches::kStartMaximized)) 427 switches::kStartMaximized))
428 return ui::SHOW_STATE_MAXIMIZED; 428 return ui::SHOW_STATE_MAXIMIZED;
429 429
430 if (browser_->initial_show_state() != ui::SHOW_STATE_DEFAULT) 430 if (browser_->initial_show_state() != ui::SHOW_STATE_DEFAULT)
431 return browser_->initial_show_state(); 431 return browser_->initial_show_state();
432 432
433 // Otherwise we use the default which can be overridden later on. 433 // Otherwise we use the default which can be overridden later on.
434 return ui::SHOW_STATE_DEFAULT; 434 return ui::SHOW_STATE_DEFAULT;
435 } 435 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/window_positioner_unittest.cc ('k') | chrome/browser/ui/window_sizer/window_sizer_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698