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

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

Issue 2653283002: Route IME Events to Focused RenderWidgets (Android) (Closed)
Patch Set: Minor fixes Created 3 years, 10 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 RenderWidgetHostViewBase* updated_view, 243 RenderWidgetHostViewBase* updated_view,
244 bool did_change_state) override; 244 bool did_change_state) override;
245 void OnImeCompositionRangeChanged( 245 void OnImeCompositionRangeChanged(
246 TextInputManager* text_input_manager, 246 TextInputManager* text_input_manager,
247 RenderWidgetHostViewBase* updated_view) override; 247 RenderWidgetHostViewBase* updated_view) override;
248 void OnImeCancelComposition(TextInputManager* text_input_manager, 248 void OnImeCancelComposition(TextInputManager* text_input_manager,
249 RenderWidgetHostViewBase* updated_view) override; 249 RenderWidgetHostViewBase* updated_view) override;
250 void OnTextSelectionChanged(TextInputManager* text_input_manager, 250 void OnTextSelectionChanged(TextInputManager* text_input_manager,
251 RenderWidgetHostViewBase* updated_view) override; 251 RenderWidgetHostViewBase* updated_view) override;
252 252
253 ImeAdapterAndroid* get_ime_adapter_for_testing() {
Charlie Reis 2017/02/21 19:30:58 nit: ime_adapter_for_testing() (No "get")
EhsanK 2017/02/21 20:41:38 Acknowledged.
254 return &ime_adapter_android_;
255 }
256
253 private: 257 private:
254 void RunAckCallbacks(); 258 void RunAckCallbacks();
255 259
256 void CheckCompositorFrameSinkChanged(uint32_t compositor_frame_sink_id); 260 void CheckCompositorFrameSinkChanged(uint32_t compositor_frame_sink_id);
257 void SubmitCompositorFrame(cc::CompositorFrame frame_data); 261 void SubmitCompositorFrame(cc::CompositorFrame frame_data);
258 void SendReclaimCompositorResources(uint32_t compositor_frame_sink_id, 262 void SendReclaimCompositorResources(uint32_t compositor_frame_sink_id,
259 bool is_swap_ack); 263 bool is_swap_ack);
260 264
261 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata, 265 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata,
262 bool is_transparent); 266 bool is_transparent);
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 gfx::Vector2dF last_scroll_offset_; 381 gfx::Vector2dF last_scroll_offset_;
378 382
379 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 383 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
380 384
381 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 385 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
382 }; 386 };
383 387
384 } // namespace content 388 } // namespace content
385 389
386 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 390 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698