Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: webkit/glue/webkitclient_impl.cc

Issue 45069: Add images for <input type="search">. These are copies of the ones in the pu... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webkit_resources.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 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 "webkit/glue/webkitclient_impl.h" 5 #include "webkit/glue/webkitclient_impl.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/stats_counters.h" 8 #include "base/stats_counters.h"
9 #include "base/trace_event.h" 9 #include "base/trace_event.h"
10 #include "grit/webkit_resources.h" 10 #include "grit/webkit_resources.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 WebCString WebKitClientImpl::loadResource(const char* name) { 55 WebCString WebKitClientImpl::loadResource(const char* name) {
56 struct { 56 struct {
57 const char* name; 57 const char* name;
58 int id; 58 int id;
59 } resources[] = { 59 } resources[] = {
60 { "textAreaResizeCorner", IDR_TEXTAREA_RESIZER }, 60 { "textAreaResizeCorner", IDR_TEXTAREA_RESIZER },
61 { "missingImage", IDR_BROKENIMAGE }, 61 { "missingImage", IDR_BROKENIMAGE },
62 { "tickmarkDash", IDR_TICKMARK_DASH }, 62 { "tickmarkDash", IDR_TICKMARK_DASH },
63 { "panIcon", IDR_PAN_SCROLL_ICON }, 63 { "panIcon", IDR_PAN_SCROLL_ICON },
64 { "searchCancel", IDR_SEARCH_CANCEL },
65 { "searchCancelPressed", IDR_SEARCH_CANCEL_PRESSED },
66 { "searchMagnifier", IDR_SEARCH_MAGNIFIER },
67 { "searchMagnifierResults", IDR_SEARCH_MAGNIFIER_RESULTS },
64 #if defined(OS_LINUX) 68 #if defined(OS_LINUX)
65 { "linuxCheckboxOff", IDR_LINUX_CHECKBOX_OFF }, 69 { "linuxCheckboxOff", IDR_LINUX_CHECKBOX_OFF },
66 { "linuxCheckboxOn", IDR_LINUX_CHECKBOX_ON }, 70 { "linuxCheckboxOn", IDR_LINUX_CHECKBOX_ON },
67 { "linuxRadioOff", IDR_LINUX_RADIO_OFF }, 71 { "linuxRadioOff", IDR_LINUX_RADIO_OFF },
68 { "linuxRadioOn", IDR_LINUX_RADIO_ON }, 72 { "linuxRadioOn", IDR_LINUX_RADIO_ON },
69 #endif 73 #endif
70 }; 74 };
71 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(resources); ++i) { 75 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(resources); ++i) {
72 if (!strcmp(name, resources[i].name)) 76 if (!strcmp(name, resources[i].name))
73 return webkit_glue::GetDataResource(resources[i].id); 77 return webkit_glue::GetDataResource(resources[i].id);
(...skipping 22 matching lines...) Expand all
96 100
97 void WebKitClientImpl::stopSharedTimer() { 101 void WebKitClientImpl::stopSharedTimer() {
98 shared_timer_.Stop(); 102 shared_timer_.Stop();
99 } 103 }
100 104
101 void WebKitClientImpl::callOnMainThread(void (*func)()) { 105 void WebKitClientImpl::callOnMainThread(void (*func)()) {
102 main_loop_->PostTask(FROM_HERE, NewRunnableFunction(func)); 106 main_loop_->PostTask(FROM_HERE, NewRunnableFunction(func));
103 } 107 }
104 108
105 } // namespace webkit_glue 109 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/webkit_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698