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

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

Issue 149760: Introduce WebLocalizedString and queryLocalizedString methods... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/webframe_impl.cc ('k') | webkit/glue/webkitclient_impl.cc » ('j') | 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 #ifndef WEBKIT_CLIENT_IMPL_H_ 5 #ifndef WEBKIT_CLIENT_IMPL_H_
6 #define WEBKIT_CLIENT_IMPL_H_ 6 #define WEBKIT_CLIENT_IMPL_H_
7 7
8 #include "base/timer.h" 8 #include "base/timer.h"
9 #include "webkit/api/public/WebKitClient.h" 9 #include "webkit/api/public/WebKitClient.h"
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 10 matching lines...) Expand all
21 21
22 // WebKitClient methods (partial implementation): 22 // WebKitClient methods (partial implementation):
23 virtual WebKit::WebThemeEngine* themeEngine(); 23 virtual WebKit::WebThemeEngine* themeEngine();
24 virtual WebKit::WebURLLoader* createURLLoader(); 24 virtual WebKit::WebURLLoader* createURLLoader();
25 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*); 25 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*);
26 virtual void decrementStatsCounter(const char* name); 26 virtual void decrementStatsCounter(const char* name);
27 virtual void incrementStatsCounter(const char* name); 27 virtual void incrementStatsCounter(const char* name);
28 virtual void traceEventBegin(const char* name, void* id, const char* extra); 28 virtual void traceEventBegin(const char* name, void* id, const char* extra);
29 virtual void traceEventEnd(const char* name, void* id, const char* extra); 29 virtual void traceEventEnd(const char* name, void* id, const char* extra);
30 virtual WebKit::WebData loadResource(const char* name); 30 virtual WebKit::WebData loadResource(const char* name);
31 virtual WebKit::WebString queryLocalizedString(
32 WebKit::WebLocalizedString::Name name);
33 virtual WebKit::WebString queryLocalizedString(
34 WebKit::WebLocalizedString::Name name, int numeric_value);
31 virtual double currentTime(); 35 virtual double currentTime();
32 virtual void setSharedTimerFiredFunction(void (*func)()); 36 virtual void setSharedTimerFiredFunction(void (*func)());
33 virtual void setSharedTimerFireTime(double fireTime); 37 virtual void setSharedTimerFireTime(double fireTime);
34 virtual void stopSharedTimer(); 38 virtual void stopSharedTimer();
35 virtual void callOnMainThread(void (*func)()); 39 virtual void callOnMainThread(void (*func)());
36 virtual void suddenTerminationChanged(bool enabled) { } 40 virtual void suddenTerminationChanged(bool enabled) { }
37 41
38 private: 42 private:
39 void DoTimeout() { 43 void DoTimeout() {
40 if (shared_timer_func_) 44 if (shared_timer_func_)
41 shared_timer_func_(); 45 shared_timer_func_();
42 } 46 }
43 47
44 MessageLoop* main_loop_; 48 MessageLoop* main_loop_;
45 base::OneShotTimer<WebKitClientImpl> shared_timer_; 49 base::OneShotTimer<WebKitClientImpl> shared_timer_;
46 void (*shared_timer_func_)(); 50 void (*shared_timer_func_)();
47 51
48 #if defined(OS_WIN) 52 #if defined(OS_WIN)
49 WebThemeEngineImpl theme_engine_; 53 WebThemeEngineImpl theme_engine_;
50 #endif 54 #endif
51 }; 55 };
52 56
53 } // namespace webkit_glue 57 } // namespace webkit_glue
54 58
55 #endif // WEBKIT_CLIENT_IMPL_H_ 59 #endif // WEBKIT_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/webframe_impl.cc ('k') | webkit/glue/webkitclient_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698