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

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

Issue 11793003: Relands: Telemetry: hooks "chrome.gpuBenchmarking.smoothScrollBy" with java on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 7 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 | Annotate | Revision Log
« 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_android.h"
10 #include "base/android/jni_helper.h" 11 #include "base/android/jni_helper.h"
11 #include "base/basictypes.h" 12 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
13 #include "base/i18n/rtl.h" 14 #include "base/i18n/rtl.h"
14 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
15 #include "base/process.h" 16 #include "base/process.h"
16 #include "content/browser/renderer_host/render_widget_host_view_android.h" 17 #include "content/browser/renderer_host/render_widget_host_view_android.h"
17 #include "content/browser/web_contents/web_contents_impl.h" 18 #include "content/browser/web_contents/web_contents_impl.h"
18 #include "content/public/browser/android/content_view_core.h" 19 #include "content/public/browser/android/content_view_core.h"
19 #include "content/public/browser/notification_observer.h" 20 #include "content/public/browser/notification_observer.h"
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 const ViewHostMsg_SelectionBounds_Params& params); 263 const ViewHostMsg_SelectionBounds_Params& params);
263 264
264 void StartContentIntent(const GURL& content_url); 265 void StartContentIntent(const GURL& content_url);
265 266
266 // Shows the disambiguation popup 267 // Shows the disambiguation popup
267 // |target_rect| --> window coordinates which |zoomed_bitmap| represents 268 // |target_rect| --> window coordinates which |zoomed_bitmap| represents
268 // |zoomed_bitmap| --> magnified image of potential touch targets 269 // |zoomed_bitmap| --> magnified image of potential touch targets
269 void ShowDisambiguationPopup( 270 void ShowDisambiguationPopup(
270 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); 271 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap);
271 272
273 // Creates a java-side smooth scroller. Used by
274 // chrome.gpuBenchmarking.smoothScrollBy.
275 base::android::ScopedJavaLocalRef<jobject> CreateSmoothScroller(
276 bool scroll_down, int mouse_event_x, int mouse_event_y);
277
272 // Notifies the java object about the external surface, requesting for one if 278 // Notifies the java object about the external surface, requesting for one if
273 // necessary. 279 // necessary.
274 void NotifyExternalSurface( 280 void NotifyExternalSurface(
275 int player_id, bool is_request, const gfx::RectF& rect); 281 int player_id, bool is_request, const gfx::RectF& rect);
276 282
277 // -------------------------------------------------------------------------- 283 // --------------------------------------------------------------------------
278 // Methods called from native code 284 // Methods called from native code
279 // -------------------------------------------------------------------------- 285 // --------------------------------------------------------------------------
280 286
281 gfx::Size GetPhysicalBackingSize() const; 287 gfx::Size GetPhysicalBackingSize() const;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 scoped_ptr<SyncInputEventFilter> input_event_filter_; 363 scoped_ptr<SyncInputEventFilter> input_event_filter_;
358 364
359 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 365 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
360 }; 366 };
361 367
362 bool RegisterContentViewCore(JNIEnv* env); 368 bool RegisterContentViewCore(JNIEnv* env);
363 369
364 } // namespace content 370 } // namespace content
365 371
366 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 372 #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