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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 void StopSpeaking() override; | 292 void StopSpeaking() override; |
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 Focus() override; | 299 void Focus() override; |
302 void UpdateCursor(const WebCursor& cursor) override; | 300 void UpdateCursor(const WebCursor& cursor) override; |
303 void SetIsLoading(bool is_loading) override; | 301 void SetIsLoading(bool is_loading) override; |
304 void TextInputStateChanged( | 302 void UpdateInputMethodIfNecessary(bool text_input_state_changed) override; |
305 const ViewHostMsg_TextInputState_Params& params) override; | |
306 void ImeCancelComposition() override; | 303 void ImeCancelComposition() override; |
307 void ImeCompositionRangeChanged( | 304 void ImeCompositionRangeChanged( |
308 const gfx::Range& range, | 305 const gfx::Range& range, |
309 const std::vector<gfx::Rect>& character_bounds) override; | 306 const std::vector<gfx::Rect>& character_bounds) override; |
310 void RenderProcessGone(base::TerminationStatus status, | 307 void RenderProcessGone(base::TerminationStatus status, |
311 int error_code) override; | 308 int error_code) override; |
312 void Destroy() override; | 309 void Destroy() override; |
313 void SetTooltipText(const base::string16& tooltip_text) override; | 310 void SetTooltipText(const base::string16& tooltip_text) override; |
314 void SelectionChanged(const base::string16& text, | 311 void SelectionChanged(const base::string16& text, |
315 size_t offset, | 312 size_t offset, |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 | 617 |
621 // Factory used to safely scope delayed calls to ShutdownHost(). | 618 // Factory used to safely scope delayed calls to ShutdownHost(). |
622 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 619 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
623 | 620 |
624 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 621 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
625 }; | 622 }; |
626 | 623 |
627 } // namespace content | 624 } // namespace content |
628 | 625 |
629 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 626 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |