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

Side by Side Diff: ui/base/clipboard/clipboard_android.h

Issue 2202033002: ui: Remove unneeded RegisterNatives() call on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jnireg1
Patch Set: rebase, unused headers Created 4 years, 4 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
« no previous file with comments | « ui/base/android/ui_base_jni_registrar.cc ('k') | ui/base/clipboard/clipboard_android.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 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 UI_BASE_CLIPBOARD_CLIPBOARD_ANDROID_H_ 5 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_ANDROID_H_
6 #define UI_BASE_CLIPBOARD_CLIPBOARD_ANDROID_H_ 6 #define UI_BASE_CLIPBOARD_CLIPBOARD_ANDROID_H_
7 7
8 #include "ui/base/clipboard/clipboard.h" 8 #include "ui/base/clipboard/clipboard.h"
9 9
10 #include <jni.h> 10 #include <jni.h>
11 #include <stddef.h> 11 #include <stddef.h>
12 #include <stdint.h> 12 #include <stdint.h>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 15
16 namespace ui { 16 namespace ui {
17 17
18 bool RegisterClipboardAndroid(JNIEnv* env);
19
20 class ClipboardAndroid : public Clipboard { 18 class ClipboardAndroid : public Clipboard {
21 private: 19 private:
22 friend class Clipboard; 20 friend class Clipboard;
23 21
24 ClipboardAndroid(); 22 ClipboardAndroid();
25 ~ClipboardAndroid() override; 23 ~ClipboardAndroid() override;
26 24
27 // Clipboard overrides: 25 // Clipboard overrides:
28 uint64_t GetSequenceNumber(ClipboardType type) const override; 26 uint64_t GetSequenceNumber(ClipboardType type) const override;
29 bool IsFormatAvailable(const FormatType& format, 27 bool IsFormatAvailable(const FormatType& format,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void WriteData(const FormatType& format, 60 void WriteData(const FormatType& format,
63 const char* data_data, 61 const char* data_data,
64 size_t data_len) override; 62 size_t data_len) override;
65 63
66 DISALLOW_COPY_AND_ASSIGN(ClipboardAndroid); 64 DISALLOW_COPY_AND_ASSIGN(ClipboardAndroid);
67 }; 65 };
68 66
69 } // namespace ui 67 } // namespace ui
70 68
71 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_ANDROID_H_ 69 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_ANDROID_H_
OLDNEW
« no previous file with comments | « ui/base/android/ui_base_jni_registrar.cc ('k') | ui/base/clipboard/clipboard_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698