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

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: Not dead! 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
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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 const ViewHostMsg_SelectionBounds_Params& params); 262 const ViewHostMsg_SelectionBounds_Params& params);
262 263
263 void StartContentIntent(const GURL& content_url); 264 void StartContentIntent(const GURL& content_url);
264 265
265 // Shows the disambiguation popup 266 // Shows the disambiguation popup
266 // |target_rect| --> window coordinates which |zoomed_bitmap| represents 267 // |target_rect| --> window coordinates which |zoomed_bitmap| represents
267 // |zoomed_bitmap| --> magnified image of potential touch targets 268 // |zoomed_bitmap| --> magnified image of potential touch targets
268 void ShowDisambiguationPopup( 269 void ShowDisambiguationPopup(
269 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap); 270 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap);
270 271
272 // Creates a java-side smooth scroller. Used by
273 // chrome.gpuBenchmarking.smoothScrollBy.
274 base::android::ScopedJavaLocalRef<jobject> CreateSmoothScroller(
275 bool scroll_down, int mouse_event_x, int mouse_event_y);
276
271 void RequestExternalVideoSurface(int player_id); 277 void RequestExternalVideoSurface(int player_id);
272 void NotifyGeometryChange(int player_id, const gfx::RectF& rect); 278 void NotifyGeometryChange(int player_id, const gfx::RectF& rect);
273 279
274 // -------------------------------------------------------------------------- 280 // --------------------------------------------------------------------------
275 // Methods called from native code 281 // Methods called from native code
276 // -------------------------------------------------------------------------- 282 // --------------------------------------------------------------------------
277 283
278 gfx::Size GetPhysicalBackingSize() const; 284 gfx::Size GetPhysicalBackingSize() const;
279 gfx::Size GetViewportSizeDip() const; 285 gfx::Size GetViewportSizeDip() const;
280 gfx::Size GetViewportSizeOffsetDip() const; 286 gfx::Size GetViewportSizeOffsetDip() const;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 scoped_ptr<SyncInputEventFilter> input_event_filter_; 360 scoped_ptr<SyncInputEventFilter> input_event_filter_;
355 361
356 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 362 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
357 }; 363 };
358 364
359 bool RegisterContentViewCore(JNIEnv* env); 365 bool RegisterContentViewCore(JNIEnv* env);
360 366
361 } // namespace content 367 } // namespace content
362 368
363 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 369 #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') | content/port/browser/smooth_scroll_gesture.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698