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 "extensions/browser/api/app_window/app_window_api.h" | 5 #include "extensions/browser/api/app_window/app_window_api.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "extensions/common/features/simple_feature.h" | 25 #include "extensions/common/features/simple_feature.h" |
26 #include "extensions/common/image_util.h" | 26 #include "extensions/common/image_util.h" |
27 #include "extensions/common/manifest.h" | 27 #include "extensions/common/manifest.h" |
28 #include "extensions/common/permissions/permissions_data.h" | 28 #include "extensions/common/permissions/permissions_data.h" |
29 #include "extensions/common/switches.h" | 29 #include "extensions/common/switches.h" |
30 #include "third_party/skia/include/core/SkColor.h" | 30 #include "third_party/skia/include/core/SkColor.h" |
31 #include "ui/base/ui_base_types.h" | 31 #include "ui/base/ui_base_types.h" |
32 #include "ui/gfx/geometry/rect.h" | 32 #include "ui/gfx/geometry/rect.h" |
33 #include "url/gurl.h" | 33 #include "url/gurl.h" |
34 | 34 |
35 namespace app_window = extensions::core_api::app_window; | 35 namespace app_window = extensions::api::app_window; |
36 namespace Create = app_window::Create; | 36 namespace Create = app_window::Create; |
37 | 37 |
38 namespace extensions { | 38 namespace extensions { |
39 | 39 |
40 namespace app_window_constants { | 40 namespace app_window_constants { |
41 const char kInvalidWindowId[] = | 41 const char kInvalidWindowId[] = |
42 "The window id can not be more than 256 characters long."; | 42 "The window id can not be more than 256 characters long."; |
43 const char kInvalidColorSpecification[] = | 43 const char kInvalidColorSpecification[] = |
44 "The color specification could not be parsed."; | 44 "The color specification could not be parsed."; |
45 const char kColorWithFrameNone[] = "Windows with no frame cannot have a color."; | 45 const char kColorWithFrameNone[] = "Windows with no frame cannot have a color."; |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 | 548 |
549 if (options.frame->as_frame_options->inactive_color.get()) { | 549 if (options.frame->as_frame_options->inactive_color.get()) { |
550 error_ = app_window_constants::kInactiveColorWithoutColor; | 550 error_ = app_window_constants::kInactiveColorWithoutColor; |
551 return false; | 551 return false; |
552 } | 552 } |
553 | 553 |
554 return true; | 554 return true; |
555 } | 555 } |
556 | 556 |
557 } // namespace extensions | 557 } // namespace extensions |
OLD | NEW |