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 20 matching lines...) Expand all Loading... |
31 #include "content/common/edit_command.h" | 31 #include "content/common/edit_command.h" |
32 #include "ipc/ipc_sender.h" | 32 #include "ipc/ipc_sender.h" |
33 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 33 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
34 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h" | 34 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h" |
35 #include "ui/accelerated_widget_mac/display_link_mac.h" | 35 #include "ui/accelerated_widget_mac/display_link_mac.h" |
36 #import "ui/base/cocoa/command_dispatcher.h" | 36 #import "ui/base/cocoa/command_dispatcher.h" |
37 #include "ui/base/cocoa/remote_layer_api.h" | 37 #include "ui/base/cocoa/remote_layer_api.h" |
38 #import "ui/base/cocoa/tool_tip_base_view.h" | 38 #import "ui/base/cocoa/tool_tip_base_view.h" |
39 #include "ui/gfx/display_observer.h" | 39 #include "ui/gfx/display_observer.h" |
40 | 40 |
41 struct ViewHostMsg_TextInputState_Params; | |
42 | |
43 namespace content { | 41 namespace content { |
44 class RenderWidgetHostImpl; | 42 class RenderWidgetHostImpl; |
45 class RenderWidgetHostViewMac; | 43 class RenderWidgetHostViewMac; |
46 class RenderWidgetHostViewMacEditCommandHelper; | 44 class RenderWidgetHostViewMacEditCommandHelper; |
47 class WebContents; | 45 class WebContents; |
48 } | 46 } |
49 | 47 |
50 namespace ui { | 48 namespace ui { |
51 class Compositor; | 49 class Compositor; |
52 class Layer; | 50 class Layer; |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 void SetBackgroundColor(SkColor color) override; | 293 void SetBackgroundColor(SkColor color) override; |
296 | 294 |
297 // Implementation of RenderWidgetHostViewBase. | 295 // Implementation of RenderWidgetHostViewBase. |
298 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 296 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
299 const gfx::Rect& pos) override; | 297 const gfx::Rect& pos) override; |
300 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 298 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
301 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; | 299 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; |
302 void Focus() override; | 300 void Focus() override; |
303 void UpdateCursor(const WebCursor& cursor) override; | 301 void UpdateCursor(const WebCursor& cursor) override; |
304 void SetIsLoading(bool is_loading) override; | 302 void SetIsLoading(bool is_loading) override; |
305 void TextInputStateChanged( | 303 void UpdateInputMethodIfNecessary(bool text_input_state_changed) override; |
306 const ViewHostMsg_TextInputState_Params& params) override; | |
307 void ImeCancelComposition() override; | 304 void ImeCancelComposition() override; |
308 void ImeCompositionRangeChanged( | 305 void ImeCompositionRangeChanged( |
309 const gfx::Range& range, | 306 const gfx::Range& range, |
310 const std::vector<gfx::Rect>& character_bounds) override; | 307 const std::vector<gfx::Rect>& character_bounds) override; |
311 void RenderProcessGone(base::TerminationStatus status, | 308 void RenderProcessGone(base::TerminationStatus status, |
312 int error_code) override; | 309 int error_code) override; |
313 void Destroy() override; | 310 void Destroy() override; |
314 void SetTooltipText(const base::string16& tooltip_text) override; | 311 void SetTooltipText(const base::string16& tooltip_text) override; |
315 void SelectionChanged(const base::string16& text, | 312 void SelectionChanged(const base::string16& text, |
316 size_t offset, | 313 size_t offset, |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 | 618 |
622 // Factory used to safely scope delayed calls to ShutdownHost(). | 619 // Factory used to safely scope delayed calls to ShutdownHost(). |
623 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 620 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
624 | 621 |
625 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 622 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
626 }; | 623 }; |
627 | 624 |
628 } // namespace content | 625 } // namespace content |
629 | 626 |
630 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 627 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |