OLD | NEW |
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 "apps/shell_window.h" | 5 #include "apps/shell_window.h" |
6 | 6 |
7 #include "apps/native_app_window.h" | 7 #include "apps/native_app_window.h" |
8 #include "apps/shell_window_geometry_cache.h" | 8 #include "apps/shell_window_geometry_cache.h" |
9 #include "apps/shell_window_registry.h" | 9 #include "apps/shell_window_registry.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 ShellWindow::CreateParams::CreateParams() | 59 ShellWindow::CreateParams::CreateParams() |
60 : window_type(ShellWindow::WINDOW_TYPE_DEFAULT), | 60 : window_type(ShellWindow::WINDOW_TYPE_DEFAULT), |
61 frame(ShellWindow::FRAME_CHROME), | 61 frame(ShellWindow::FRAME_CHROME), |
62 transparent_background(false), | 62 transparent_background(false), |
63 bounds(INT_MIN, INT_MIN, 0, 0), | 63 bounds(INT_MIN, INT_MIN, 0, 0), |
64 creator_process_id(0), | 64 creator_process_id(0), |
65 state(ui::SHOW_STATE_DEFAULT), | 65 state(ui::SHOW_STATE_DEFAULT), |
66 hidden(false), | 66 hidden(false), |
67 resizable(true), | 67 resizable(true), |
68 focused(true) {} | 68 focused(true), |
| 69 always_on_top(false) {} |
69 | 70 |
70 ShellWindow::CreateParams::~CreateParams() {} | 71 ShellWindow::CreateParams::~CreateParams() {} |
71 | 72 |
72 ShellWindow::Delegate::~Delegate() {} | 73 ShellWindow::Delegate::~Delegate() {} |
73 | 74 |
74 ShellWindow::ShellWindow(Profile* profile, | 75 ShellWindow::ShellWindow(Profile* profile, |
75 Delegate* delegate, | 76 Delegate* delegate, |
76 const extensions::Extension* extension) | 77 const extensions::Extension* extension) |
77 : profile_(profile), | 78 : profile_(profile), |
78 extension_(extension), | 79 extension_(extension), |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 region.bounds.x(), | 656 region.bounds.x(), |
656 region.bounds.y(), | 657 region.bounds.y(), |
657 region.bounds.right(), | 658 region.bounds.right(), |
658 region.bounds.bottom(), | 659 region.bounds.bottom(), |
659 region.draggable ? SkRegion::kUnion_Op : SkRegion::kDifference_Op); | 660 region.draggable ? SkRegion::kUnion_Op : SkRegion::kDifference_Op); |
660 } | 661 } |
661 return sk_region; | 662 return sk_region; |
662 } | 663 } |
663 | 664 |
664 } // namespace apps | 665 } // namespace apps |
OLD | NEW |