OLD | NEW |
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/views/frame/desktop_browser_frame_aura.h" | 5 #include "chrome/browser/ui/views/frame/desktop_browser_frame_aura.h" |
6 | 6 |
7 #include "chrome/app/chrome_command_ids.h" | 7 #include "chrome/app/chrome_command_ids.h" |
8 #include "chrome/browser/ui/views/frame/browser_desktop_window_tree_host.h" | 8 #include "chrome/browser/ui/views/frame/browser_desktop_window_tree_host.h" |
9 #include "chrome/browser/ui/views/frame/browser_shutdown.h" | 9 #include "chrome/browser/ui/views/frame/browser_shutdown.h" |
10 #include "chrome/browser/ui/views/frame/browser_view.h" | 10 #include "chrome/browser/ui/views/frame/browser_view.h" |
11 #include "grit/chromium_strings.h" | |
12 #include "grit/generated_resources.h" | |
13 #include "ui/aura/client/aura_constants.h" | 11 #include "ui/aura/client/aura_constants.h" |
14 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
15 #include "ui/aura/window_event_dispatcher.h" | 13 #include "ui/aura/window_event_dispatcher.h" |
16 #include "ui/aura/window_observer.h" | 14 #include "ui/aura/window_observer.h" |
17 #include "ui/base/hit_test.h" | 15 #include "ui/base/hit_test.h" |
18 #include "ui/base/l10n/l10n_util.h" | |
19 #include "ui/base/models/simple_menu_model.h" | 16 #include "ui/base/models/simple_menu_model.h" |
20 #include "ui/gfx/font.h" | 17 #include "ui/gfx/font.h" |
21 #include "ui/views/view.h" | 18 #include "ui/views/view.h" |
22 #include "ui/wm/core/visibility_controller.h" | 19 #include "ui/wm/core/visibility_controller.h" |
23 | 20 |
24 using aura::Window; | 21 using aura::Window; |
25 | 22 |
26 /////////////////////////////////////////////////////////////////////////////// | 23 /////////////////////////////////////////////////////////////////////////////// |
27 // DesktopBrowserFrameAura, public: | 24 // DesktopBrowserFrameAura, public: |
28 | 25 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 gfx::Rect* bounds, | 99 gfx::Rect* bounds, |
103 ui::WindowShowState* show_state) const { | 100 ui::WindowShowState* show_state) const { |
104 *bounds = GetWidget()->GetRestoredBounds(); | 101 *bounds = GetWidget()->GetRestoredBounds(); |
105 if (IsMaximized()) | 102 if (IsMaximized()) |
106 *show_state = ui::SHOW_STATE_MAXIMIZED; | 103 *show_state = ui::SHOW_STATE_MAXIMIZED; |
107 else if (IsMinimized()) | 104 else if (IsMinimized()) |
108 *show_state = ui::SHOW_STATE_MINIMIZED; | 105 *show_state = ui::SHOW_STATE_MINIMIZED; |
109 else | 106 else |
110 *show_state = ui::SHOW_STATE_NORMAL; | 107 *show_state = ui::SHOW_STATE_NORMAL; |
111 } | 108 } |
OLD | NEW |