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

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

Issue 2235283003: Track composition range and character bounds on the browser side (Mac) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased to fix some crashing tests Created 4 years, 4 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_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <IOSurface/IOSurface.h> 9 #include <IOSurface/IOSurface.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 void StopSpeaking() override; 277 void StopSpeaking() override;
278 void SetBackgroundColor(SkColor color) override; 278 void SetBackgroundColor(SkColor color) override;
279 279
280 // Implementation of RenderWidgetHostViewBase. 280 // Implementation of RenderWidgetHostViewBase.
281 void InitAsPopup(RenderWidgetHostView* parent_host_view, 281 void InitAsPopup(RenderWidgetHostView* parent_host_view,
282 const gfx::Rect& pos) override; 282 const gfx::Rect& pos) override;
283 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; 283 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
284 void Focus() override; 284 void Focus() override;
285 void UpdateCursor(const WebCursor& cursor) override; 285 void UpdateCursor(const WebCursor& cursor) override;
286 void SetIsLoading(bool is_loading) override; 286 void SetIsLoading(bool is_loading) override;
287 void ImeCompositionRangeChanged(
288 const gfx::Range& range,
289 const std::vector<gfx::Rect>& character_bounds) override;
290 void RenderProcessGone(base::TerminationStatus status, 287 void RenderProcessGone(base::TerminationStatus status,
291 int error_code) override; 288 int error_code) override;
292 void Destroy() override; 289 void Destroy() override;
293 void SetTooltipText(const base::string16& tooltip_text) override; 290 void SetTooltipText(const base::string16& tooltip_text) override;
294 void SelectionChanged(const base::string16& text, 291 void SelectionChanged(const base::string16& text,
295 size_t offset, 292 size_t offset,
296 const gfx::Range& range) override; 293 const gfx::Range& range) override;
297 void SelectionBoundsChanged( 294 void SelectionBoundsChanged(
298 const ViewHostMsg_SelectionBounds_Params& params) override; 295 const ViewHostMsg_SelectionBounds_Params& params) override;
299 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, 296 void CopyFromCompositingSurface(const gfx::Rect& src_subrect,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 gfx::Point TransformPointToCoordSpaceForView( 346 gfx::Point TransformPointToCoordSpaceForView(
350 const gfx::Point& point, 347 const gfx::Point& point,
351 RenderWidgetHostViewBase* target_view) override; 348 RenderWidgetHostViewBase* target_view) override;
352 349
353 // TextInputManager::Observer implementation. 350 // TextInputManager::Observer implementation.
354 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, 351 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager,
355 RenderWidgetHostViewBase* updated_view, 352 RenderWidgetHostViewBase* updated_view,
356 bool did_update_state) override; 353 bool did_update_state) override;
357 void OnImeCancelComposition(TextInputManager* text_input_manager, 354 void OnImeCancelComposition(TextInputManager* text_input_manager,
358 RenderWidgetHostViewBase* updated_view) override; 355 RenderWidgetHostViewBase* updated_view) override;
356 void OnImeCompositionRangeChanged(
357 TextInputManager* text_input_manager,
358 RenderWidgetHostViewBase* updated_view) override;
359 359
360 // IPC::Sender implementation. 360 // IPC::Sender implementation.
361 bool Send(IPC::Message* message) override; 361 bool Send(IPC::Message* message) override;
362 362
363 // display::DisplayObserver implementation. 363 // display::DisplayObserver implementation.
364 void OnDisplayAdded(const display::Display& new_display) override; 364 void OnDisplayAdded(const display::Display& new_display) override;
365 void OnDisplayRemoved(const display::Display& old_display) override; 365 void OnDisplayRemoved(const display::Display& old_display) override;
366 void OnDisplayMetricsChanged(const display::Display& display, 366 void OnDisplayMetricsChanged(const display::Display& display,
367 uint32_t metrics) override; 367 uint32_t metrics) override;
368 368
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 552
553 // Factory used to safely scope delayed calls to ShutdownHost(). 553 // Factory used to safely scope delayed calls to ShutdownHost().
554 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 554 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
555 555
556 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 556 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
557 }; 557 };
558 558
559 } // namespace content 559 } // namespace content
560 560
561 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 561 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698