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

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

Issue 11783088: Split Date/Time picker values from IME processing since date/time related form values have been com… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved header file out of public, applied renaming suggestions. Created 7 years, 11 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
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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) { 280 void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) {
281 // Do nothing. The UI notification is handled through ContentViewClient which 281 // Do nothing. The UI notification is handled through ContentViewClient which
282 // is TabContentsDelegate. 282 // is TabContentsDelegate.
283 } 283 }
284 284
285 void RenderWidgetHostViewAndroid::TextInputStateChanged( 285 void RenderWidgetHostViewAndroid::TextInputStateChanged(
286 const ViewHostMsg_TextInputState_Params& params) { 286 const ViewHostMsg_TextInputState_Params& params) {
287 if (!IsShowing()) 287 if (!IsShowing())
288 return; 288 return;
289 289
290 // TODO(miguelg): this currently dispatches messages for text inputs
291 // and date/time value inputs. Split it into two adapters.
292 content_view_core_->ImeUpdateAdapter( 290 content_view_core_->ImeUpdateAdapter(
293 GetNativeImeAdapter(), 291 GetNativeImeAdapter(),
294 static_cast<int>(params.type), 292 static_cast<int>(params.type),
295 params.value, params.selection_start, params.selection_end, 293 params.value, params.selection_start, params.selection_end,
296 params.composition_start, params.composition_end, 294 params.composition_start, params.composition_end,
297 params.show_ime_if_needed); 295 params.show_ime_if_needed);
298 } 296 }
299 297
300 int RenderWidgetHostViewAndroid::GetNativeImeAdapter() { 298 int RenderWidgetHostViewAndroid::GetNativeImeAdapter() {
301 return reinterpret_cast<int>(&ime_adapter_android_); 299 return reinterpret_cast<int>(&ime_adapter_android_);
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 // RenderWidgetHostView, public: 638 // RenderWidgetHostView, public:
641 639
642 // static 640 // static
643 RenderWidgetHostView* 641 RenderWidgetHostView*
644 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { 642 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) {
645 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); 643 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget);
646 return new RenderWidgetHostViewAndroid(rwhi, NULL); 644 return new RenderWidgetHostViewAndroid(rwhi, NULL);
647 } 645 }
648 646
649 } // namespace content 647 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698