| OLD | NEW |
| 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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( | 287 void ImeCompositionRangeChanged( |
| 288 const gfx::Range& range, | 288 const gfx::Range& range, |
| 289 const std::vector<gfx::Rect>& character_bounds) override; | 289 const std::vector<gfx::Rect>& character_bounds) override; |
| 290 void RenderProcessGone(base::TerminationStatus status, | 290 void RenderProcessGone(base::TerminationStatus status, |
| 291 int error_code) override; | 291 int error_code) override; |
| 292 void Destroy() override; | 292 void Destroy() override; |
| 293 void SetTooltipText(const base::string16& tooltip_text) override; | 293 void SetTooltipText(const base::string16& tooltip_text) override; |
| 294 void SelectionChanged(const base::string16& text, | |
| 295 size_t offset, | |
| 296 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, |
| 300 const gfx::Size& dst_size, | 297 const gfx::Size& dst_size, |
| 301 const ReadbackRequestCallback& callback, | 298 const ReadbackRequestCallback& callback, |
| 302 SkColorType preferred_color_type) override; | 299 SkColorType preferred_color_type) override; |
| 303 void CopyFromCompositingSurfaceToVideoFrame( | 300 void CopyFromCompositingSurfaceToVideoFrame( |
| 304 const gfx::Rect& src_subrect, | 301 const gfx::Rect& src_subrect, |
| 305 const scoped_refptr<media::VideoFrame>& target, | 302 const scoped_refptr<media::VideoFrame>& target, |
| 306 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; | 303 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 gfx::Point TransformPointToCoordSpaceForView( | 347 gfx::Point TransformPointToCoordSpaceForView( |
| 351 const gfx::Point& point, | 348 const gfx::Point& point, |
| 352 RenderWidgetHostViewBase* target_view) override; | 349 RenderWidgetHostViewBase* target_view) override; |
| 353 | 350 |
| 354 // TextInputManager::Observer implementation. | 351 // TextInputManager::Observer implementation. |
| 355 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, | 352 void OnUpdateTextInputStateCalled(TextInputManager* text_input_manager, |
| 356 RenderWidgetHostViewBase* updated_view, | 353 RenderWidgetHostViewBase* updated_view, |
| 357 bool did_update_state) override; | 354 bool did_update_state) override; |
| 358 void OnImeCancelComposition(TextInputManager* text_input_manager, | 355 void OnImeCancelComposition(TextInputManager* text_input_manager, |
| 359 RenderWidgetHostViewBase* updated_view) override; | 356 RenderWidgetHostViewBase* updated_view) override; |
| 360 | 357 void OnTextSelectionChanged(TextInputManager* text_input_manager, |
| 358 RenderWidgetHostViewBase* updated_view) override; |
| 361 // IPC::Sender implementation. | 359 // IPC::Sender implementation. |
| 362 bool Send(IPC::Message* message) override; | 360 bool Send(IPC::Message* message) override; |
| 363 | 361 |
| 364 // display::DisplayObserver implementation. | 362 // display::DisplayObserver implementation. |
| 365 void OnDisplayAdded(const display::Display& new_display) override; | 363 void OnDisplayAdded(const display::Display& new_display) override; |
| 366 void OnDisplayRemoved(const display::Display& old_display) override; | 364 void OnDisplayRemoved(const display::Display& old_display) override; |
| 367 void OnDisplayMetricsChanged(const display::Display& display, | 365 void OnDisplayMetricsChanged(const display::Display& display, |
| 368 uint32_t metrics) override; | 366 uint32_t metrics) override; |
| 369 | 367 |
| 370 // Forwards the mouse event to the renderer. | 368 // Forwards the mouse event to the renderer. |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 | 546 |
| 549 // Factory used to safely scope delayed calls to ShutdownHost(). | 547 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 550 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 548 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 551 | 549 |
| 552 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 550 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 553 }; | 551 }; |
| 554 | 552 |
| 555 } // namespace content | 553 } // namespace content |
| 556 | 554 |
| 557 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 555 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |