OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "config.h" | 26 #include "config.h" |
27 #include "ColorChooserPopupUIController.h" | 27 #include "ColorChooserPopupUIController.h" |
28 | 28 |
29 #include "ChromeClientImpl.h" | 29 #include "ChromeClientImpl.h" |
30 #include "ColorSuggestionPicker.h" | 30 #include "ColorSuggestionPicker.h" |
31 #include "PickerCommon.h" | 31 #include "PickerCommon.h" |
32 #include "WebColorChooser.h" | 32 #include "WebColorChooser.h" |
33 #include "WebViewImpl.h" | 33 #include "WebViewImpl.h" |
34 #include "core/page/FrameView.h" | 34 #include "core/page/FrameView.h" |
35 #include "core/platform/ColorChooserClient.h" | 35 #include "core/platform/ColorChooserClient.h" |
36 #include "core/platform/graphics/IntRect.h" | 36 #include "platform/geometry/IntRect.h" |
37 #include "platform/LocalizedStrings.h" | 37 #include "platform/LocalizedStrings.h" |
38 #include "public/platform/Platform.h" | 38 #include "public/platform/Platform.h" |
39 #include "public/platform/WebLocalizedString.h" | 39 #include "public/platform/WebLocalizedString.h" |
40 | 40 |
41 using namespace WebCore; | 41 using namespace WebCore; |
42 | 42 |
43 namespace WebKit { | 43 namespace WebKit { |
44 | 44 |
45 // Keep in sync with Actions in colorSuggestionPicker.js. | 45 // Keep in sync with Actions in colorSuggestionPicker.js. |
46 enum ColorPickerPopupAction { | 46 enum ColorPickerPopupAction { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 } | 143 } |
144 | 144 |
145 void ColorChooserPopupUIController::closePopup() | 145 void ColorChooserPopupUIController::closePopup() |
146 { | 146 { |
147 if (!m_popup) | 147 if (!m_popup) |
148 return; | 148 return; |
149 m_chromeClient->closePagePopup(m_popup); | 149 m_chromeClient->closePagePopup(m_popup); |
150 } | 150 } |
151 | 151 |
152 } | 152 } |
OLD | NEW |