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