| OLD | NEW |
| 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 COMPONENTS_HTML_VIEWER_WEB_CLIPBOARD_IMPL_H_ | 5 #ifndef COMPONENTS_HTML_VIEWER_WEB_CLIPBOARD_IMPL_H_ |
| 6 #define COMPONENTS_HTML_VIEWER_WEB_CLIPBOARD_IMPL_H_ | 6 #define COMPONENTS_HTML_VIEWER_WEB_CLIPBOARD_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
| 8 #include "components/clipboard/public/interfaces/clipboard.mojom.h" | 11 #include "components/clipboard/public/interfaces/clipboard.mojom.h" |
| 9 #include "third_party/WebKit/public/platform/WebClipboard.h" | 12 #include "third_party/WebKit/public/platform/WebClipboard.h" |
| 10 | 13 |
| 11 namespace html_viewer { | 14 namespace html_viewer { |
| 12 | 15 |
| 13 class WebClipboardImpl : public blink::WebClipboard { | 16 class WebClipboardImpl : public blink::WebClipboard { |
| 14 public: | 17 public: |
| 15 WebClipboardImpl(mojo::ClipboardPtr clipboard); | 18 WebClipboardImpl(mojo::ClipboardPtr clipboard); |
| 16 virtual ~WebClipboardImpl(); | 19 virtual ~WebClipboardImpl(); |
| 17 | 20 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 40 mojo::Clipboard::Type ConvertBufferType(Buffer buffer); | 43 mojo::Clipboard::Type ConvertBufferType(Buffer buffer); |
| 41 | 44 |
| 42 mojo::ClipboardPtr clipboard_; | 45 mojo::ClipboardPtr clipboard_; |
| 43 | 46 |
| 44 DISALLOW_COPY_AND_ASSIGN(WebClipboardImpl); | 47 DISALLOW_COPY_AND_ASSIGN(WebClipboardImpl); |
| 45 }; | 48 }; |
| 46 | 49 |
| 47 } // namespace html_viewer | 50 } // namespace html_viewer |
| 48 | 51 |
| 49 #endif // COMPONENTS_HTML_VIEWER_WEB_CLIPBOARD_IMPL_H_ | 52 #endif // COMPONENTS_HTML_VIEWER_WEB_CLIPBOARD_IMPL_H_ |
| OLD | NEW |