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

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: Address comments. Created 7 years, 9 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 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 RenderViewHost* host = web_contents_->GetRenderViewHost(); 1231 RenderViewHost* host = web_contents_->GetRenderViewHost();
1232 host->ExitFullscreen(); 1232 host->ExitFullscreen();
1233 } 1233 }
1234 1234
1235 void ContentViewCoreImpl::EnableHidingTopControls(JNIEnv* env, jobject obj, 1235 void ContentViewCoreImpl::EnableHidingTopControls(JNIEnv* env, jobject obj,
1236 bool enable) { 1236 bool enable) {
1237 RenderViewHost* host = web_contents_->GetRenderViewHost(); 1237 RenderViewHost* host = web_contents_->GetRenderViewHost();
1238 host->Send(new ViewMsg_EnableHidingTopControls(host->GetRoutingID(), enable)); 1238 host->Send(new ViewMsg_EnableHidingTopControls(host->GetRoutingID(), enable));
1239 } 1239 }
1240 1240
1241 void ContentViewCoreImpl::ShowTopControls(JNIEnv* env, jobject obj, bool show) {
1242 RenderViewHost* host = web_contents_->GetRenderViewHost();
1243 host->Send(new ViewMsg_ShowTopControls(host->GetRoutingID(), show));
1244 }
1245
1241 void ContentViewCoreImpl::ShowImeIfNeeded(JNIEnv* env, jobject obj) { 1246 void ContentViewCoreImpl::ShowImeIfNeeded(JNIEnv* env, jobject obj) {
1242 RenderViewHost* host = web_contents_->GetRenderViewHost(); 1247 RenderViewHost* host = web_contents_->GetRenderViewHost();
1243 host->Send(new ViewMsg_ShowImeIfNeeded(host->GetRoutingID())); 1248 host->Send(new ViewMsg_ShowImeIfNeeded(host->GetRoutingID()));
1244 } 1249 }
1245 1250
1246 void ContentViewCoreImpl::ScrollFocusedEditableNodeIntoView(JNIEnv* env, 1251 void ContentViewCoreImpl::ScrollFocusedEditableNodeIntoView(JNIEnv* env,
1247 jobject obj) { 1252 jobject obj) {
1248 RenderViewHost* host = web_contents_->GetRenderViewHost(); 1253 RenderViewHost* host = web_contents_->GetRenderViewHost();
1249 host->Send(new ViewMsg_ScrollFocusedEditableNodeIntoRect(host->GetRoutingID(), 1254 host->Send(new ViewMsg_ScrollFocusedEditableNodeIntoRect(host->GetRoutingID(),
1250 gfx::Rect())); 1255 gfx::Rect()));
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 reinterpret_cast<WebContents*>(native_web_contents), 1457 reinterpret_cast<WebContents*>(native_web_contents),
1453 reinterpret_cast<ui::WindowAndroid*>(native_window)); 1458 reinterpret_cast<ui::WindowAndroid*>(native_window));
1454 return reinterpret_cast<jint>(view); 1459 return reinterpret_cast<jint>(view);
1455 } 1460 }
1456 1461
1457 bool RegisterContentViewCore(JNIEnv* env) { 1462 bool RegisterContentViewCore(JNIEnv* env) {
1458 return RegisterNativesImpl(env); 1463 return RegisterNativesImpl(env);
1459 } 1464 }
1460 1465
1461 } // namespace content 1466 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698