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

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

Issue 2832263002: Clipboard Android - Store and Read Last Modified Time from Prefs (Closed)
Patch Set: revert omnibox_field_trial_code, rebase Created 3 years, 8 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 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/android/scoped_java_ref.h" 14 #include "base/android/scoped_java_ref.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/time/time.h" 16 #include "base/time/time.h"
17 17
18 class PrefService;
19 class PrefRegistrySimple;
20
18 namespace ui { 21 namespace ui {
19 22
20 class ClipboardAndroid : public Clipboard { 23 class ClipboardAndroid : public Clipboard {
21 public: 24 public:
25 // Exported only so
26 // chrome/browser/android/preferences/browser_prefs_android.cc
Bernhard Bauer 2017/04/25 13:30:06 Nit: this comment seems like a bit of a layering v
Mark P 2017/04/25 18:51:21 In retrospect, I agree. This isn't worth a commen
27 // can call it.
28 UI_BASE_EXPORT static void RegisterPrefs(PrefRegistrySimple* registry);
29
30 // Called during startup when local state is available to store a pointer to
31 // local_state in order to read and update prefs.
32 UI_BASE_EXPORT void SetLocalState(PrefService* local_state);
33
22 // Called by Java when the Java Clipboard is notified that the clipboard has 34 // Called by Java when the Java Clipboard is notified that the clipboard has
23 // changed. 35 // changed.
24 void OnPrimaryClipChanged(JNIEnv* env, 36 void OnPrimaryClipChanged(JNIEnv* env,
25 const base::android::JavaParamRef<jobject>& obj); 37 const base::android::JavaParamRef<jobject>& obj);
26 38
27 private: 39 private:
28 friend class Clipboard; 40 friend class Clipboard;
29 41
30 ClipboardAndroid(); 42 ClipboardAndroid();
31 ~ClipboardAndroid() override; 43 ~ClipboardAndroid() override;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 86
75 DISALLOW_COPY_AND_ASSIGN(ClipboardAndroid); 87 DISALLOW_COPY_AND_ASSIGN(ClipboardAndroid);
76 }; 88 };
77 89
78 // Registers the ClipboardAndroid native method. 90 // Registers the ClipboardAndroid native method.
79 bool RegisterClipboardAndroid(JNIEnv* env); 91 bool RegisterClipboardAndroid(JNIEnv* env);
80 92
81 } // namespace ui 93 } // namespace ui
82 94
83 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_ANDROID_H_ 95 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698