| 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 <list> | 10 #include <list> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #import "content/public/browser/render_widget_host_view_mac_base.h" | 28 #import "content/public/browser/render_widget_host_view_mac_base.h" |
| 29 #include "ipc/ipc_sender.h" | 29 #include "ipc/ipc_sender.h" |
| 30 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 30 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
| 31 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h" | 31 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h" |
| 32 #include "ui/accelerated_widget_mac/display_link_mac.h" | 32 #include "ui/accelerated_widget_mac/display_link_mac.h" |
| 33 #include "ui/accelerated_widget_mac/io_surface_layer.h" | 33 #include "ui/accelerated_widget_mac/io_surface_layer.h" |
| 34 #include "ui/base/cocoa/remote_layer_api.h" | 34 #include "ui/base/cocoa/remote_layer_api.h" |
| 35 #import "ui/base/cocoa/tool_tip_base_view.h" | 35 #import "ui/base/cocoa/tool_tip_base_view.h" |
| 36 #include "ui/gfx/display_observer.h" | 36 #include "ui/gfx/display_observer.h" |
| 37 | 37 |
| 38 struct ViewHostMsg_TextInputState_Params; |
| 39 |
| 38 namespace content { | 40 namespace content { |
| 39 class RenderWidgetHostImpl; | 41 class RenderWidgetHostImpl; |
| 40 class RenderWidgetHostViewMac; | 42 class RenderWidgetHostViewMac; |
| 41 class RenderWidgetHostViewMacEditCommandHelper; | 43 class RenderWidgetHostViewMacEditCommandHelper; |
| 42 class WebContents; | 44 class WebContents; |
| 43 } | 45 } |
| 44 | 46 |
| 45 namespace ui { | 47 namespace ui { |
| 46 class Compositor; | 48 class Compositor; |
| 47 class Layer; | 49 class Layer; |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 void SetBackgroundColor(SkColor color) override; | 285 void SetBackgroundColor(SkColor color) override; |
| 284 | 286 |
| 285 // Implementation of RenderWidgetHostViewBase. | 287 // Implementation of RenderWidgetHostViewBase. |
| 286 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 288 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 287 const gfx::Rect& pos) override; | 289 const gfx::Rect& pos) override; |
| 288 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 290 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
| 289 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; | 291 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; |
| 290 void Focus() override; | 292 void Focus() override; |
| 291 void UpdateCursor(const WebCursor& cursor) override; | 293 void UpdateCursor(const WebCursor& cursor) override; |
| 292 void SetIsLoading(bool is_loading) override; | 294 void SetIsLoading(bool is_loading) override; |
| 293 void TextInputTypeChanged(ui::TextInputType type, | 295 void TextInputStateChanged( |
| 294 ui::TextInputMode input_mode, | 296 const ViewHostMsg_TextInputState_Params& params) override; |
| 295 bool can_compose_inline, | |
| 296 int flags) override; | |
| 297 void ImeCancelComposition() override; | 297 void ImeCancelComposition() override; |
| 298 void ImeCompositionRangeChanged( | 298 void ImeCompositionRangeChanged( |
| 299 const gfx::Range& range, | 299 const gfx::Range& range, |
| 300 const std::vector<gfx::Rect>& character_bounds) override; | 300 const std::vector<gfx::Rect>& character_bounds) override; |
| 301 void RenderProcessGone(base::TerminationStatus status, | 301 void RenderProcessGone(base::TerminationStatus status, |
| 302 int error_code) override; | 302 int error_code) override; |
| 303 void RenderWidgetHostGone() override; | 303 void RenderWidgetHostGone() override; |
| 304 void Destroy() override; | 304 void Destroy() override; |
| 305 void SetTooltipText(const base::string16& tooltip_text) override; | 305 void SetTooltipText(const base::string16& tooltip_text) override; |
| 306 void SelectionChanged(const base::string16& text, | 306 void SelectionChanged(const base::string16& text, |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 | 585 |
| 586 // Factory used to safely scope delayed calls to ShutdownHost(). | 586 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 587 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 587 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 588 | 588 |
| 589 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 589 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 590 }; | 590 }; |
| 591 | 591 |
| 592 } // namespace content | 592 } // namespace content |
| 593 | 593 |
| 594 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 594 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |