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

Side by Side Diff: content/browser/android/content_view_core_impl.h

Issue 11068010: Show selection handles around selected text. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed sky's comments Created 8 years, 2 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 | « no previous file | content/browser/android/content_view_core_impl.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 (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_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/android/jni_helper.h" 10 #include "base/android/jni_helper.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 const std::string& text, 189 const std::string& text,
190 int selection_start, int selection_end, 190 int selection_start, int selection_end,
191 int composition_start, int composition_end, 191 int composition_start, int composition_end,
192 bool show_ime_if_needed); 192 bool show_ime_if_needed);
193 void SetTitle(const string16& title); 193 void SetTitle(const string16& title);
194 194
195 bool HasFocus(); 195 bool HasFocus();
196 void ConfirmTouchEvent(bool handled); 196 void ConfirmTouchEvent(bool handled);
197 void DidSetNeedTouchEvents(bool need_touch_events); 197 void DidSetNeedTouchEvents(bool need_touch_events);
198 void OnSelectionChanged(const std::string& text); 198 void OnSelectionChanged(const std::string& text);
199 void OnSelectionBoundsChanged(int startx, 199 virtual void OnSelectionBoundsChanged(
200 int starty, 200 const gfx::Rect& start_rect, base::i18n::TextDirection start_dir,
201 base::i18n::TextDirection start_dir, 201 const gfx::Rect& end_rect, base::i18n::TextDirection end_dir) OVERRIDE;
nilesh 2012/10/10 20:35:42 Unless I am missing something, you need to add thi
Iain Merrick 2012/10/11 09:51:23 Argh, good catch! I need to add content_view_core.
202 int endx,
203 int endy,
204 base::i18n::TextDirection end_dir);
205 202
206 void StartContentIntent(const GURL& content_url); 203 void StartContentIntent(const GURL& content_url);
207 204
208 // -------------------------------------------------------------------------- 205 // --------------------------------------------------------------------------
209 // Methods called from native code 206 // Methods called from native code
210 // -------------------------------------------------------------------------- 207 // --------------------------------------------------------------------------
211 208
212 gfx::Rect GetBounds() const; 209 gfx::Rect GetBounds() const;
213 210
214 private: 211 private:
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 ui::WindowAndroid* window_android_; 255 ui::WindowAndroid* window_android_;
259 256
260 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 257 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
261 }; 258 };
262 259
263 bool RegisterContentViewCore(JNIEnv* env); 260 bool RegisterContentViewCore(JNIEnv* env);
264 261
265 } // namespace content 262 } // namespace content
266 263
267 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 264 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698