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

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

Issue 2460173003: Revert "Allow selection change update before beginBatchEdit" on M54 (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « content/browser/renderer_host/ime_adapter_android.cc ('k') | content/common/input_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <utility> 9 #include <utility>
10 10
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 } 615 }
616 616
617 if (!content_view_core_) 617 if (!content_view_core_)
618 return; 618 return;
619 619
620 content_view_core_->UpdateImeAdapter( 620 content_view_core_->UpdateImeAdapter(
621 GetNativeImeAdapter(), 621 GetNativeImeAdapter(),
622 static_cast<int>(params.type), params.flags, 622 static_cast<int>(params.type), params.flags,
623 params.value, params.selection_start, params.selection_end, 623 params.value, params.selection_start, params.selection_end,
624 params.composition_start, params.composition_end, 624 params.composition_start, params.composition_end,
625 params.show_ime_if_needed, params.is_non_ime_change, 625 params.show_ime_if_needed, params.is_non_ime_change);
626 params.batch_edit);
627 } 626 }
628 627
629 void RenderWidgetHostViewAndroid::UpdateBackgroundColor(SkColor color) { 628 void RenderWidgetHostViewAndroid::UpdateBackgroundColor(SkColor color) {
630 if (cached_background_color_ == color) 629 if (cached_background_color_ == color)
631 return; 630 return;
632 631
633 cached_background_color_ = color; 632 cached_background_color_ = color;
634 633
635 if (delegated_frame_host_) 634 if (delegated_frame_host_)
636 delegated_frame_host_->UpdateBackgroundColor(color); 635 delegated_frame_host_->UpdateBackgroundColor(color);
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1871 case ui::MotionEvent::ACTION_UP: 1870 case ui::MotionEvent::ACTION_UP:
1872 case ui::MotionEvent::ACTION_POINTER_UP: 1871 case ui::MotionEvent::ACTION_POINTER_UP:
1873 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", 1872 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED",
1874 delta.InMicroseconds(), 1, 1000000, 50); 1873 delta.InMicroseconds(), 1, 1000000, 50);
1875 default: 1874 default:
1876 return; 1875 return;
1877 } 1876 }
1878 } 1877 }
1879 1878
1880 } // namespace content 1879 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/ime_adapter_android.cc ('k') | content/common/input_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698