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

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

Issue 11967015: Hide location bar on WebKit programmatic scroll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove semicolon from end of message declaration Created 7 years, 8 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 #include "content/browser/android/content_view_core_impl.h" 5 #include "content/browser/android/content_view_core_impl.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_array.h" 8 #include "base/android/jni_array.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1236 RenderViewHost* host = web_contents_->GetRenderViewHost(); 1236 RenderViewHost* host = web_contents_->GetRenderViewHost();
1237 host->ExitFullscreen(); 1237 host->ExitFullscreen();
1238 } 1238 }
1239 1239
1240 void ContentViewCoreImpl::EnableHidingTopControls(JNIEnv* env, jobject obj, 1240 void ContentViewCoreImpl::EnableHidingTopControls(JNIEnv* env, jobject obj,
1241 bool enable) { 1241 bool enable) {
1242 RenderViewHost* host = web_contents_->GetRenderViewHost(); 1242 RenderViewHost* host = web_contents_->GetRenderViewHost();
1243 host->Send(new ViewMsg_EnableHidingTopControls(host->GetRoutingID(), enable)); 1243 host->Send(new ViewMsg_EnableHidingTopControls(host->GetRoutingID(), enable));
1244 } 1244 }
1245 1245
1246 void ContentViewCoreImpl::ShowTopControls(JNIEnv* env, jobject obj, bool show) {
1247 RenderViewHost* host = web_contents_->GetRenderViewHost();
1248 host->Send(new ViewMsg_ShowTopControls(host->GetRoutingID(), show));
1249 }
1250
1246 void ContentViewCoreImpl::ShowImeIfNeeded(JNIEnv* env, jobject obj) { 1251 void ContentViewCoreImpl::ShowImeIfNeeded(JNIEnv* env, jobject obj) {
1247 RenderViewHost* host = web_contents_->GetRenderViewHost(); 1252 RenderViewHost* host = web_contents_->GetRenderViewHost();
1248 host->Send(new ViewMsg_ShowImeIfNeeded(host->GetRoutingID())); 1253 host->Send(new ViewMsg_ShowImeIfNeeded(host->GetRoutingID()));
1249 } 1254 }
1250 1255
1251 void ContentViewCoreImpl::ScrollFocusedEditableNodeIntoView(JNIEnv* env, 1256 void ContentViewCoreImpl::ScrollFocusedEditableNodeIntoView(JNIEnv* env,
1252 jobject obj) { 1257 jobject obj) {
1253 RenderViewHost* host = web_contents_->GetRenderViewHost(); 1258 RenderViewHost* host = web_contents_->GetRenderViewHost();
1254 host->Send(new ViewMsg_ScrollFocusedEditableNodeIntoRect(host->GetRoutingID(), 1259 host->Send(new ViewMsg_ScrollFocusedEditableNodeIntoRect(host->GetRoutingID(),
1255 gfx::Rect())); 1260 gfx::Rect()));
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1457 reinterpret_cast<WebContents*>(native_web_contents), 1462 reinterpret_cast<WebContents*>(native_web_contents),
1458 reinterpret_cast<ui::WindowAndroid*>(native_window)); 1463 reinterpret_cast<ui::WindowAndroid*>(native_window));
1459 return reinterpret_cast<jint>(view); 1464 return reinterpret_cast<jint>(view);
1460 } 1465 }
1461 1466
1462 bool RegisterContentViewCore(JNIEnv* env) { 1467 bool RegisterContentViewCore(JNIEnv* env) {
1463 return RegisterNativesImpl(env); 1468 return RegisterNativesImpl(env);
1464 } 1469 }
1465 1470
1466 } // namespace content 1471 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.h ('k') | content/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698