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

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

Issue 378233002: [Android] Extend smart clip to return html along with text (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: avoid build breakage Created 6 years, 5 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_android.h" 10 #include "base/android/jni_android.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // -------------------------------------------------------------------------- 239 // --------------------------------------------------------------------------
240 240
241 // This method is invoked when the request is deferred immediately after 241 // This method is invoked when the request is deferred immediately after
242 // receiving response headers. 242 // receiving response headers.
243 void DidDeferAfterResponseStarted(); 243 void DidDeferAfterResponseStarted();
244 244
245 // This method is invoked when a navigation transition is detected, to 245 // This method is invoked when a navigation transition is detected, to
246 // determine if the embedder intends to handle it. 246 // determine if the embedder intends to handle it.
247 bool WillHandleDeferAfterResponseStarted(); 247 bool WillHandleDeferAfterResponseStarted();
248 248
249 void OnSmartClipDataExtracted(const gfx::Rect& clip_rect, 249 void OnSmartClipDataExtracted(const base::string16& text,
250 const base::string16& result); 250 const base::string16& html,
251 const gfx::Rect& clip_rect);
251 252
252 // Creates a popup menu with |items|. 253 // Creates a popup menu with |items|.
253 // |multiple| defines if it should support multi-select. 254 // |multiple| defines if it should support multi-select.
254 // If not |multiple|, |selected_item| sets the initially selected item. 255 // If not |multiple|, |selected_item| sets the initially selected item.
255 // Otherwise, item's "checked" flag selects it. 256 // Otherwise, item's "checked" flag selects it.
256 void ShowSelectPopupMenu(const gfx::Rect& bounds, 257 void ShowSelectPopupMenu(const gfx::Rect& bounds,
257 const std::vector<MenuItem>& items, 258 const std::vector<MenuItem>& items,
258 int selected_item, 259 int selected_item,
259 bool multiple); 260 bool multiple);
260 // Hides a visible popup menu. 261 // Hides a visible popup menu.
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 java_bridge_dispatcher_host_; 401 java_bridge_dispatcher_host_;
401 402
402 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 403 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
403 }; 404 };
404 405
405 bool RegisterContentViewCore(JNIEnv* env); 406 bool RegisterContentViewCore(JNIEnv* env);
406 407
407 } // namespace content 408 } // namespace content
408 409
409 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 410 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698