OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/app_window/app_window.h" | 5 #include "extensions/browser/app_window/app_window.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 frame(AppWindow::FRAME_CHROME), | 153 frame(AppWindow::FRAME_CHROME), |
154 has_frame_color(false), | 154 has_frame_color(false), |
155 active_frame_color(SK_ColorBLACK), | 155 active_frame_color(SK_ColorBLACK), |
156 inactive_frame_color(SK_ColorBLACK), | 156 inactive_frame_color(SK_ColorBLACK), |
157 alpha_enabled(false), | 157 alpha_enabled(false), |
158 creator_process_id(0), | 158 creator_process_id(0), |
159 state(ui::SHOW_STATE_DEFAULT), | 159 state(ui::SHOW_STATE_DEFAULT), |
160 hidden(false), | 160 hidden(false), |
161 resizable(true), | 161 resizable(true), |
162 focused(true), | 162 focused(true), |
163 always_on_top(false) { | 163 always_on_top(false), |
| 164 visible_on_all_workspaces(false) { |
164 } | 165 } |
165 | 166 |
166 AppWindow::CreateParams::~CreateParams() {} | 167 AppWindow::CreateParams::~CreateParams() {} |
167 | 168 |
168 gfx::Rect AppWindow::CreateParams::GetInitialWindowBounds( | 169 gfx::Rect AppWindow::CreateParams::GetInitialWindowBounds( |
169 const gfx::Insets& frame_insets) const { | 170 const gfx::Insets& frame_insets) const { |
170 // Combine into a single window bounds. | 171 // Combine into a single window bounds. |
171 gfx::Rect combined_bounds(window_spec.bounds); | 172 gfx::Rect combined_bounds(window_spec.bounds); |
172 if (content_spec.bounds.x() != BoundsSpecification::kUnspecifiedPosition) | 173 if (content_spec.bounds.x() != BoundsSpecification::kUnspecifiedPosition) |
173 combined_bounds.set_x(content_spec.bounds.x() - frame_insets.left()); | 174 combined_bounds.set_x(content_spec.bounds.x() - frame_insets.left()); |
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 region.bounds.x(), | 1082 region.bounds.x(), |
1082 region.bounds.y(), | 1083 region.bounds.y(), |
1083 region.bounds.right(), | 1084 region.bounds.right(), |
1084 region.bounds.bottom(), | 1085 region.bounds.bottom(), |
1085 region.draggable ? SkRegion::kUnion_Op : SkRegion::kDifference_Op); | 1086 region.draggable ? SkRegion::kUnion_Op : SkRegion::kDifference_Op); |
1086 } | 1087 } |
1087 return sk_region; | 1088 return sk_region; |
1088 } | 1089 } |
1089 | 1090 |
1090 } // namespace extensions | 1091 } // namespace extensions |
OLD | NEW |