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

Side by Side Diff: content/public/browser/android/content_view_core.h

Issue 322203002: Add an interface to gather text surrounding the selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@surroundings-patch-5
Patch Set: Comments. Created 6 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "base/basictypes.h"
jdduke (slow) 2014/06/17 22:43:26 I don't think you need to add this include.
donnd 2014/06/18 00:09:58 Done.
11 #include "base/callback.h" 12 #include "base/callback.h"
12 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/browser/android/text_surroundings_delegate.h"
13 #include "content/public/browser/navigation_controller.h" 15 #include "content/public/browser/navigation_controller.h"
14 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
15 17
16 class SkBitmap; 18 class SkBitmap;
17 19
18 namespace cc { 20 namespace cc {
19 class Layer; 21 class Layer;
20 } 22 }
21 23
22 namespace gfx { 24 namespace gfx {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual float GetDpiScale() const = 0; 63 virtual float GetDpiScale() const = 0;
62 virtual void PauseVideo() = 0; 64 virtual void PauseVideo() = 0;
63 virtual void PauseOrResumeGeolocation(bool should_pause) = 0; 65 virtual void PauseOrResumeGeolocation(bool should_pause) = 0;
64 66
65 // Observer callback for frame metadata updates. 67 // Observer callback for frame metadata updates.
66 typedef base::Callback<void( 68 typedef base::Callback<void(
67 const gfx::SizeF& content_size, 69 const gfx::SizeF& content_size,
68 const gfx::Vector2dF& scroll_offset, 70 const gfx::Vector2dF& scroll_offset,
69 float page_scale_factor)> UpdateFrameInfoCallback; 71 float page_scale_factor)> UpdateFrameInfoCallback;
70 72
73 // Text surrounding selection.
74 virtual void SetTextSurroundingsDelegate(TextSurroundingsDelegate* delegate)
75 = 0;
jdduke (slow) 2014/06/17 22:43:26 "= 0;" should be "OVERRIDE;".
donnd 2014/06/18 00:09:59 Really? The compiler complains about that. Moot
76 virtual void RequestTextSurroundingSelection(int max_length) const = 0;
77
71 protected: 78 protected:
72 virtual ~ContentViewCore() {}; 79 virtual ~ContentViewCore() {};
73 }; 80 };
74 81
75 }; // namespace content 82 }; // namespace content
76 83
77 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_ 84 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_CONTENT_VIEW_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698