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

Side by Side Diff: mojo/services/html_viewer/blink_platform_impl.h

Issue 579503003: Revert of mojo: Create a basic clipboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ 5 #ifndef MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_
6 #define MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ 6 #define MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/threading/thread_local_storage.h" 10 #include "base/threading/thread_local_storage.h"
11 #include "base/timer/timer.h" 11 #include "base/timer/timer.h"
12 #include "cc/blink/web_compositor_support_impl.h" 12 #include "cc/blink/web_compositor_support_impl.h"
13 #include "mojo/services/html_viewer/webmimeregistry_impl.h" 13 #include "mojo/services/html_viewer/webmimeregistry_impl.h"
14 #include "mojo/services/html_viewer/webthemeengine_impl.h" 14 #include "mojo/services/html_viewer/webthemeengine_impl.h"
15 #include "mojo/services/public/interfaces/network/network_service.mojom.h" 15 #include "mojo/services/public/interfaces/network/network_service.mojom.h"
16 #include "third_party/WebKit/public/platform/Platform.h" 16 #include "third_party/WebKit/public/platform/Platform.h"
17 #include "third_party/WebKit/public/platform/WebScrollbarBehavior.h" 17 #include "third_party/WebKit/public/platform/WebScrollbarBehavior.h"
18 18
19 namespace mojo { 19 namespace mojo {
20 class ApplicationImpl; 20 class ApplicationImpl;
21 class WebClipboardImpl;
22 class WebCookieJarImpl; 21 class WebCookieJarImpl;
23 22
24 class BlinkPlatformImpl : public blink::Platform { 23 class BlinkPlatformImpl : public blink::Platform {
25 public: 24 public:
26 explicit BlinkPlatformImpl(ApplicationImpl* app); 25 explicit BlinkPlatformImpl(ApplicationImpl* app);
27 virtual ~BlinkPlatformImpl(); 26 virtual ~BlinkPlatformImpl();
28 27
29 // blink::Platform methods: 28 // blink::Platform methods:
30 virtual blink::WebCookieJar* cookieJar(); 29 virtual blink::WebCookieJar* cookieJar();
31 virtual blink::WebClipboard* clipboard();
32 virtual blink::WebMimeRegistry* mimeRegistry(); 30 virtual blink::WebMimeRegistry* mimeRegistry();
33 virtual blink::WebThemeEngine* themeEngine(); 31 virtual blink::WebThemeEngine* themeEngine();
34 virtual blink::WebString defaultLocale(); 32 virtual blink::WebString defaultLocale();
35 virtual double currentTime(); 33 virtual double currentTime();
36 virtual double monotonicallyIncreasingTime(); 34 virtual double monotonicallyIncreasingTime();
37 virtual void cryptographicallyRandomValues( 35 virtual void cryptographicallyRandomValues(
38 unsigned char* buffer, size_t length); 36 unsigned char* buffer, size_t length);
39 virtual void setSharedTimerFiredFunction(void (*func)()); 37 virtual void setSharedTimerFiredFunction(void (*func)());
40 virtual void setSharedTimerFireInterval(double interval_seconds); 38 virtual void setSharedTimerFireInterval(double interval_seconds);
41 virtual void stopSharedTimer(); 39 virtual void stopSharedTimer();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 base::MessageLoop* main_loop_; 71 base::MessageLoop* main_loop_;
74 base::OneShotTimer<BlinkPlatformImpl> shared_timer_; 72 base::OneShotTimer<BlinkPlatformImpl> shared_timer_;
75 void (*shared_timer_func_)(); 73 void (*shared_timer_func_)();
76 double shared_timer_fire_time_; 74 double shared_timer_fire_time_;
77 bool shared_timer_fire_time_was_set_while_suspended_; 75 bool shared_timer_fire_time_was_set_while_suspended_;
78 int shared_timer_suspended_; // counter 76 int shared_timer_suspended_; // counter
79 base::ThreadLocalStorage::Slot current_thread_slot_; 77 base::ThreadLocalStorage::Slot current_thread_slot_;
80 cc_blink::WebCompositorSupportImpl compositor_support_; 78 cc_blink::WebCompositorSupportImpl compositor_support_;
81 WebThemeEngineImpl theme_engine_; 79 WebThemeEngineImpl theme_engine_;
82 scoped_ptr<WebCookieJarImpl> cookie_jar_; 80 scoped_ptr<WebCookieJarImpl> cookie_jar_;
83 scoped_ptr<WebClipboardImpl> clipboard_;
84 WebMimeRegistryImpl mime_registry_; 81 WebMimeRegistryImpl mime_registry_;
85 blink::WebScrollbarBehavior scrollbar_behavior_; 82 blink::WebScrollbarBehavior scrollbar_behavior_;
86 83
87 DISALLOW_COPY_AND_ASSIGN(BlinkPlatformImpl); 84 DISALLOW_COPY_AND_ASSIGN(BlinkPlatformImpl);
88 }; 85 };
89 86
90 } // namespace mojo 87 } // namespace mojo
91 88
92 #endif // MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ 89 #endif // MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/blink_basic_type_converters.cc ('k') | mojo/services/html_viewer/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698