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/extensions/native_app_window_views.h" | 5 #include "chrome/browser/ui/views/extensions/native_app_window_views.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/threading/sequenced_worker_pool.h" | 10 #include "base/threading/sequenced_worker_pool.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 #include "ash/shell.h" | 40 #include "ash/shell.h" |
41 #include "ash/wm/custom_frame_view_ash.h" | 41 #include "ash/wm/custom_frame_view_ash.h" |
42 #include "ash/wm/panels/panel_frame_view.h" | 42 #include "ash/wm/panels/panel_frame_view.h" |
43 #include "ash/wm/window_properties.h" | 43 #include "ash/wm/window_properties.h" |
44 #include "chrome/browser/ui/ash/ash_util.h" | 44 #include "chrome/browser/ui/ash/ash_util.h" |
45 #include "ui/aura/client/aura_constants.h" | 45 #include "ui/aura/client/aura_constants.h" |
46 #include "ui/aura/root_window.h" | 46 #include "ui/aura/root_window.h" |
47 #include "ui/aura/window.h" | 47 #include "ui/aura/window.h" |
48 #endif | 48 #endif |
49 | 49 |
| 50 using apps::ShellWindow; |
| 51 |
50 namespace { | 52 namespace { |
51 | 53 |
52 const int kMinPanelWidth = 100; | 54 const int kMinPanelWidth = 100; |
53 const int kMinPanelHeight = 100; | 55 const int kMinPanelHeight = 100; |
54 const int kDefaultPanelWidth = 200; | 56 const int kDefaultPanelWidth = 200; |
55 const int kDefaultPanelHeight = 300; | 57 const int kDefaultPanelHeight = 300; |
56 const int kResizeInsideBoundsSize = 5; | 58 const int kResizeInsideBoundsSize = 5; |
57 | 59 |
58 struct AcceleratorMapping { | 60 struct AcceleratorMapping { |
59 ui::KeyboardCode keycode; | 61 ui::KeyboardCode keycode; |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 } | 748 } |
747 | 749 |
748 //------------------------------------------------------------------------------ | 750 //------------------------------------------------------------------------------ |
749 // NativeAppWindow::Create | 751 // NativeAppWindow::Create |
750 | 752 |
751 // static | 753 // static |
752 NativeAppWindow* NativeAppWindow::Create( | 754 NativeAppWindow* NativeAppWindow::Create( |
753 ShellWindow* shell_window, const ShellWindow::CreateParams& params) { | 755 ShellWindow* shell_window, const ShellWindow::CreateParams& params) { |
754 return new NativeAppWindowViews(shell_window, params); | 756 return new NativeAppWindowViews(shell_window, params); |
755 } | 757 } |
OLD | NEW |