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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 11418295: Use WebCore:DateTimeChooser for date/time form types instead of considering them text fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebaed to include dependent CL Created 8 years 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 (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/renderer_host/render_widget_host_view_android.h" 5 #include "content/browser/renderer_host/render_widget_host_view_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) { 267 void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) {
268 // Do nothing. The UI notification is handled through ContentViewClient which 268 // Do nothing. The UI notification is handled through ContentViewClient which
269 // is TabContentsDelegate. 269 // is TabContentsDelegate.
270 } 270 }
271 271
272 void RenderWidgetHostViewAndroid::TextInputStateChanged( 272 void RenderWidgetHostViewAndroid::TextInputStateChanged(
273 const ViewHostMsg_TextInputState_Params& params) { 273 const ViewHostMsg_TextInputState_Params& params) {
274 if (!IsShowing()) 274 if (!IsShowing())
275 return; 275 return;
276 276
277 // TODO(miguelg) this currently dispatches messages for text inputs
bulach 2012/12/07 18:10:13 nit: add a ":"
Miguel Garcia 2012/12/07 19:04:35 Done.
278 // and date/time value inputs. Split it into two adapters.
277 content_view_core_->ImeUpdateAdapter( 279 content_view_core_->ImeUpdateAdapter(
278 GetNativeImeAdapter(), 280 GetNativeImeAdapter(),
279 static_cast<int>(params.type), 281 static_cast<int>(params.type),
280 params.value, params.selection_start, params.selection_end, 282 params.value, params.selection_start, params.selection_end,
281 params.composition_start, params.composition_end, 283 params.composition_start, params.composition_end,
282 params.show_ime_if_needed); 284 params.show_ime_if_needed);
283 } 285 }
284 286
285 int RenderWidgetHostViewAndroid::GetNativeImeAdapter() { 287 int RenderWidgetHostViewAndroid::GetNativeImeAdapter() {
286 return reinterpret_cast<int>(&ime_adapter_android_); 288 return reinterpret_cast<int>(&ime_adapter_android_);
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 // RenderWidgetHostView, public: 597 // RenderWidgetHostView, public:
596 598
597 // static 599 // static
598 RenderWidgetHostView* 600 RenderWidgetHostView*
599 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { 601 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) {
600 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); 602 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget);
601 return new RenderWidgetHostViewAndroid(rwhi, NULL); 603 return new RenderWidgetHostViewAndroid(rwhi, NULL);
602 } 604 }
603 605
604 } // namespace content 606 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698