OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "ChromiumBridge.h" | 6 #include "ChromiumBridge.h" |
7 | 7 |
8 #include "BitmapImage.h" | 8 #include "BitmapImage.h" |
9 #include "Cursor.h" | 9 #include "Cursor.h" |
10 #include "Frame.h" | 10 #include "Frame.h" |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 // The rest get converted to a resource ID that we can pass to the glue. | 215 // The rest get converted to a resource ID that we can pass to the glue. |
216 int resource_id = 0; | 216 int resource_id = 0; |
217 if (!strcmp(name, "textAreaResizeCorner")) { | 217 if (!strcmp(name, "textAreaResizeCorner")) { |
218 resource_id = IDR_TEXTAREA_RESIZER; | 218 resource_id = IDR_TEXTAREA_RESIZER; |
219 } else if (!strcmp(name, "missingImage")) { | 219 } else if (!strcmp(name, "missingImage")) { |
220 resource_id = IDR_BROKENIMAGE; | 220 resource_id = IDR_BROKENIMAGE; |
221 } else if (!strcmp(name, "tickmarkDash")) { | 221 } else if (!strcmp(name, "tickmarkDash")) { |
222 resource_id = IDR_TICKMARK_DASH; | 222 resource_id = IDR_TICKMARK_DASH; |
223 } else if (!strcmp(name, "panIcon")) { | 223 } else if (!strcmp(name, "panIcon")) { |
224 resource_id = IDR_PAN_SCROLL_ICON; | 224 resource_id = IDR_PAN_SCROLL_ICON; |
| 225 } else if (!strcmp(name, "linuxCheckboxOff")) { |
| 226 resource_id = IDR_LINUX_CHECKBOX_OFF; |
| 227 } else if (!strcmp(name, "linuxCheckboxOn")) { |
| 228 resource_id = IDR_LINUX_CHECKBOX_ON; |
| 229 } else if (!strcmp(name, "linuxRadioOff")) { |
| 230 resource_id = IDR_LINUX_RADIO_OFF; |
| 231 } else if (!strcmp(name, "linuxRadioOn")) { |
| 232 resource_id = IDR_LINUX_RADIO_ON; |
225 } else if (!strcmp(name, "deleteButton")) { | 233 } else if (!strcmp(name, "deleteButton")) { |
226 if (webkit_glue::IsLayoutTestMode()) { | 234 if (webkit_glue::IsLayoutTestMode()) { |
227 RefPtr<Image> image = BitmapImage::create(); | 235 RefPtr<Image> image = BitmapImage::create(); |
228 // Create a red 30x30 square used only in layout tests. | 236 // Create a red 30x30 square used only in layout tests. |
229 const char red_square[] = | 237 const char red_square[] = |
230 "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52" | 238 "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52" |
231 "\x00\x00\x00\x1e\x00\x00\x00\x1e\x04\x03\x00\x00\x00\xc9\x1e\xb3" | 239 "\x00\x00\x00\x1e\x00\x00\x00\x1e\x04\x03\x00\x00\x00\xc9\x1e\xb3" |
232 "\x91\x00\x00\x00\x30\x50\x4c\x54\x45\x00\x00\x00\x80\x00\x00\x00" | 240 "\x91\x00\x00\x00\x30\x50\x4c\x54\x45\x00\x00\x00\x80\x00\x00\x00" |
233 "\x80\x00\x80\x80\x00\x00\x00\x80\x80\x00\x80\x00\x80\x80\x80\x80" | 241 "\x80\x00\x80\x80\x00\x00\x00\x80\x80\x00\x80\x00\x80\x80\x80\x80" |
234 "\x80\xc0\xc0\xc0\xff\x00\x00\x00\xff\x00\xff\xff\x00\x00\x00\xff" | 242 "\x80\xc0\xc0\xc0\xff\x00\x00\x00\xff\x00\xff\xff\x00\x00\x00\xff" |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 chrome_client->SetCursor(WebCursor(cursor.impl())); | 543 chrome_client->SetCursor(WebCursor(cursor.impl())); |
536 } | 544 } |
537 | 545 |
538 void ChromiumBridge::widgetSetFocus(Widget* widget) { | 546 void ChromiumBridge::widgetSetFocus(Widget* widget) { |
539 ChromeClientImpl* chrome_client = ToChromeClient(widget); | 547 ChromeClientImpl* chrome_client = ToChromeClient(widget); |
540 if (chrome_client) | 548 if (chrome_client) |
541 chrome_client->focus(); | 549 chrome_client->focus(); |
542 } | 550 } |
543 | 551 |
544 } // namespace WebCore | 552 } // namespace WebCore |
OLD | NEW |