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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 void StopSpeaking() override; | 275 void StopSpeaking() override; |
278 void SetBackgroundColor(SkColor color) override; | 276 void SetBackgroundColor(SkColor color) override; |
279 | 277 |
280 // Implementation of RenderWidgetHostViewBase. | 278 // Implementation of RenderWidgetHostViewBase. |
281 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 279 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
282 const gfx::Rect& pos) override; | 280 const gfx::Rect& pos) override; |
283 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 281 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
284 void Focus() override; | 282 void Focus() override; |
285 void UpdateCursor(const WebCursor& cursor) override; | 283 void UpdateCursor(const WebCursor& cursor) override; |
286 void SetIsLoading(bool is_loading) override; | 284 void SetIsLoading(bool is_loading) override; |
287 void TextInputStateChanged( | 285 void UpdateInputMethodIfNecessary(bool text_input_state_changed) override; |
288 const ViewHostMsg_TextInputState_Params& params) override; | |
289 void ImeCancelComposition() override; | 286 void ImeCancelComposition() override; |
290 void ImeCompositionRangeChanged( | 287 void ImeCompositionRangeChanged( |
291 const gfx::Range& range, | 288 const gfx::Range& range, |
292 const std::vector<gfx::Rect>& character_bounds) override; | 289 const std::vector<gfx::Rect>& character_bounds) override; |
293 void RenderProcessGone(base::TerminationStatus status, | 290 void RenderProcessGone(base::TerminationStatus status, |
294 int error_code) override; | 291 int error_code) override; |
295 void Destroy() override; | 292 void Destroy() override; |
296 void SetTooltipText(const base::string16& tooltip_text) override; | 293 void SetTooltipText(const base::string16& tooltip_text) override; |
297 void SelectionChanged(const base::string16& text, | 294 void SelectionChanged(const base::string16& text, |
298 size_t offset, | 295 size_t offset, |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 | 598 |
602 // Factory used to safely scope delayed calls to ShutdownHost(). | 599 // Factory used to safely scope delayed calls to ShutdownHost(). |
603 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 600 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
604 | 601 |
605 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 602 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
606 }; | 603 }; |
607 | 604 |
608 } // namespace content | 605 } // namespace content |
609 | 606 |
610 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 607 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |