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

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

Issue 562483002: mojo: Create a basic clipboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes to the gn files. 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;
21 class WebCookieJarImpl; 22 class WebCookieJarImpl;
22 23
23 class BlinkPlatformImpl : public blink::Platform { 24 class BlinkPlatformImpl : public blink::Platform {
24 public: 25 public:
25 explicit BlinkPlatformImpl(ApplicationImpl* app); 26 explicit BlinkPlatformImpl(ApplicationImpl* app);
26 virtual ~BlinkPlatformImpl(); 27 virtual ~BlinkPlatformImpl();
27 28
28 // blink::Platform methods: 29 // blink::Platform methods:
29 virtual blink::WebCookieJar* cookieJar(); 30 virtual blink::WebCookieJar* cookieJar();
31 virtual blink::WebClipboard* clipboard();
30 virtual blink::WebMimeRegistry* mimeRegistry(); 32 virtual blink::WebMimeRegistry* mimeRegistry();
31 virtual blink::WebThemeEngine* themeEngine(); 33 virtual blink::WebThemeEngine* themeEngine();
32 virtual blink::WebString defaultLocale(); 34 virtual blink::WebString defaultLocale();
33 virtual double currentTime(); 35 virtual double currentTime();
34 virtual double monotonicallyIncreasingTime(); 36 virtual double monotonicallyIncreasingTime();
35 virtual void cryptographicallyRandomValues( 37 virtual void cryptographicallyRandomValues(
36 unsigned char* buffer, size_t length); 38 unsigned char* buffer, size_t length);
37 virtual void setSharedTimerFiredFunction(void (*func)()); 39 virtual void setSharedTimerFiredFunction(void (*func)());
38 virtual void setSharedTimerFireInterval(double interval_seconds); 40 virtual void setSharedTimerFireInterval(double interval_seconds);
39 virtual void stopSharedTimer(); 41 virtual void stopSharedTimer();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 base::MessageLoop* main_loop_; 73 base::MessageLoop* main_loop_;
72 base::OneShotTimer<BlinkPlatformImpl> shared_timer_; 74 base::OneShotTimer<BlinkPlatformImpl> shared_timer_;
73 void (*shared_timer_func_)(); 75 void (*shared_timer_func_)();
74 double shared_timer_fire_time_; 76 double shared_timer_fire_time_;
75 bool shared_timer_fire_time_was_set_while_suspended_; 77 bool shared_timer_fire_time_was_set_while_suspended_;
76 int shared_timer_suspended_; // counter 78 int shared_timer_suspended_; // counter
77 base::ThreadLocalStorage::Slot current_thread_slot_; 79 base::ThreadLocalStorage::Slot current_thread_slot_;
78 cc_blink::WebCompositorSupportImpl compositor_support_; 80 cc_blink::WebCompositorSupportImpl compositor_support_;
79 WebThemeEngineImpl theme_engine_; 81 WebThemeEngineImpl theme_engine_;
80 scoped_ptr<WebCookieJarImpl> cookie_jar_; 82 scoped_ptr<WebCookieJarImpl> cookie_jar_;
83 scoped_ptr<WebClipboardImpl> clipboard_;
81 WebMimeRegistryImpl mime_registry_; 84 WebMimeRegistryImpl mime_registry_;
82 blink::WebScrollbarBehavior scrollbar_behavior_; 85 blink::WebScrollbarBehavior scrollbar_behavior_;
83 86
84 DISALLOW_COPY_AND_ASSIGN(BlinkPlatformImpl); 87 DISALLOW_COPY_AND_ASSIGN(BlinkPlatformImpl);
85 }; 88 };
86 89
87 } // namespace mojo 90 } // namespace mojo
88 91
89 #endif // MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ 92 #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