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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 void SetBackgroundColor(SkColor color) override; | 295 void SetBackgroundColor(SkColor color) override; |
296 | 296 |
297 // Implementation of RenderWidgetHostViewBase. | 297 // Implementation of RenderWidgetHostViewBase. |
298 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 298 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
299 const gfx::Rect& pos) override; | 299 const gfx::Rect& pos) override; |
300 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 300 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
301 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; | 301 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; |
302 void Focus() override; | 302 void Focus() override; |
303 void UpdateCursor(const WebCursor& cursor) override; | 303 void UpdateCursor(const WebCursor& cursor) override; |
304 void SetIsLoading(bool is_loading) override; | 304 void SetIsLoading(bool is_loading) override; |
305 void TextInputStateChanged( | 305 void UpdateTextInputState() override; |
306 const ViewHostMsg_TextInputState_Params& params) override; | |
307 void ImeCancelComposition() override; | 306 void ImeCancelComposition() override; |
308 void ImeCompositionRangeChanged( | 307 void ImeCompositionRangeChanged( |
309 const gfx::Range& range, | 308 const gfx::Range& range, |
310 const std::vector<gfx::Rect>& character_bounds) override; | 309 const std::vector<gfx::Rect>& character_bounds) override; |
311 void RenderProcessGone(base::TerminationStatus status, | 310 void RenderProcessGone(base::TerminationStatus status, |
312 int error_code) override; | 311 int error_code) override; |
313 void Destroy() override; | 312 void Destroy() override; |
314 void SetTooltipText(const base::string16& tooltip_text) override; | 313 void SetTooltipText(const base::string16& tooltip_text) override; |
315 void SelectionChanged(const base::string16& text, | 314 void SelectionChanged(const base::string16& text, |
316 size_t offset, | 315 size_t offset, |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 | 618 |
620 // Factory used to safely scope delayed calls to ShutdownHost(). | 619 // Factory used to safely scope delayed calls to ShutdownHost(). |
621 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 620 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
622 | 621 |
623 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 622 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
624 }; | 623 }; |
625 | 624 |
626 } // namespace content | 625 } // namespace content |
627 | 626 |
628 #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 |