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

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

Issue 6990051: Unix ifdefs patch for ui/ and webkit/ (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: removed some too general ifdefs and ppapi changes Created 9 years, 7 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #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/platform_file.h" 8 #include "base/platform_file.h"
9 #include "base/timer.h" 9 #include "base/timer.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKitClient.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKitClient.h"
11 #if defined(OS_WIN) 11 #if defined(OS_WIN)
12 #include "webkit/glue/webthemeengine_impl_win.h" 12 #include "webkit/glue/webthemeengine_impl_win.h"
13 #elif defined(OS_LINUX)
14 #include "webkit/glue/webthemeengine_impl_linux.h"
15 #elif defined(OS_MACOSX) 13 #elif defined(OS_MACOSX)
16 #include "webkit/glue/webthemeengine_impl_mac.h" 14 #include "webkit/glue/webthemeengine_impl_mac.h"
15 #elif defined(OS_POSIX)
16 #include "webkit/glue/webthemeengine_impl_linux.h"
17 #endif 17 #endif
18 18
19 19
20 class MessageLoop; 20 class MessageLoop;
21 21
22 namespace webkit_glue { 22 namespace webkit_glue {
23 23
24 class WebKitClientImpl : public WebKit::WebKitClient { 24 class WebKitClientImpl : public WebKit::WebKitClient {
25 public: 25 public:
26 WebKitClientImpl(); 26 WebKitClientImpl();
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void DoTimeout() { 82 void DoTimeout() {
83 if (shared_timer_func_ && !shared_timer_suspended_) 83 if (shared_timer_func_ && !shared_timer_suspended_)
84 shared_timer_func_(); 84 shared_timer_func_();
85 } 85 }
86 86
87 MessageLoop* main_loop_; 87 MessageLoop* main_loop_;
88 base::OneShotTimer<WebKitClientImpl> shared_timer_; 88 base::OneShotTimer<WebKitClientImpl> shared_timer_;
89 void (*shared_timer_func_)(); 89 void (*shared_timer_func_)();
90 double shared_timer_fire_time_; 90 double shared_timer_fire_time_;
91 int shared_timer_suspended_; // counter 91 int shared_timer_suspended_; // counter
92
93 #if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX)
94 WebThemeEngineImpl theme_engine_; 92 WebThemeEngineImpl theme_engine_;
95 #endif
96 }; 93 };
97 94
98 } // namespace webkit_glue 95 } // namespace webkit_glue
99 96
100 #endif // WEBKIT_CLIENT_IMPL_H_ 97 #endif // WEBKIT_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698