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 <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "content/common/edit_command.h" | 23 #include "content/common/edit_command.h" |
24 #import "content/public/browser/render_widget_host_view_mac_base.h" | 24 #import "content/public/browser/render_widget_host_view_mac_base.h" |
25 #include "ipc/ipc_sender.h" | 25 #include "ipc/ipc_sender.h" |
26 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 26 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
27 #include "ui/base/cocoa/base_view.h" | 27 #include "ui/base/cocoa/base_view.h" |
28 #include "webkit/common/cursors/webcursor.h" | 28 #include "webkit/common/cursors/webcursor.h" |
29 | 29 |
30 namespace content { | 30 namespace content { |
31 class CompositingIOSurfaceMac; | 31 class CompositingIOSurfaceMac; |
32 class CompositingIOSurfaceContext; | 32 class CompositingIOSurfaceContext; |
| 33 class RenderFrameHost; |
33 class RenderWidgetHostViewMac; | 34 class RenderWidgetHostViewMac; |
34 class RenderWidgetHostViewMacEditCommandHelper; | 35 class RenderWidgetHostViewMacEditCommandHelper; |
35 } | 36 } |
36 | 37 |
37 @class CompositingIOSurfaceLayer; | 38 @class CompositingIOSurfaceLayer; |
38 @class FullscreenWindowManager; | 39 @class FullscreenWindowManager; |
39 @protocol RenderWidgetHostViewMacDelegate; | 40 @protocol RenderWidgetHostViewMacDelegate; |
40 @class ToolTip; | 41 @class ToolTip; |
41 | 42 |
42 @protocol RenderWidgetHostViewMacOwner | 43 @protocol RenderWidgetHostViewMacOwner |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 // composition based range. Also stores |actual_range| which is corresponding | 396 // composition based range. Also stores |actual_range| which is corresponding |
396 // to actually used range for returned rectangle. | 397 // to actually used range for returned rectangle. |
397 gfx::Rect GetFirstRectForCompositionRange(const gfx::Range& range, | 398 gfx::Rect GetFirstRectForCompositionRange(const gfx::Range& range, |
398 gfx::Range* actual_range); | 399 gfx::Range* actual_range); |
399 | 400 |
400 // Converts from given whole character range to composition oriented range. If | 401 // Converts from given whole character range to composition oriented range. If |
401 // the conversion failed, return gfx::Range::InvalidRange. | 402 // the conversion failed, return gfx::Range::InvalidRange. |
402 gfx::Range ConvertCharacterRangeToCompositionRange( | 403 gfx::Range ConvertCharacterRangeToCompositionRange( |
403 const gfx::Range& request_range); | 404 const gfx::Range& request_range); |
404 | 405 |
| 406 // Returns the focused frame. May return NULL. |
| 407 RenderFrameHost* GetFocusedFrame(); |
| 408 |
405 // These member variables should be private, but the associated ObjC class | 409 // These member variables should be private, but the associated ObjC class |
406 // needs access to them and can't be made a friend. | 410 // needs access to them and can't be made a friend. |
407 | 411 |
408 // The associated Model. Can be NULL if Destroy() is called when | 412 // The associated Model. Can be NULL if Destroy() is called when |
409 // someone (other than superview) has retained |cocoa_view_|. | 413 // someone (other than superview) has retained |cocoa_view_|. |
410 RenderWidgetHostImpl* render_widget_host_; | 414 RenderWidgetHostImpl* render_widget_host_; |
411 | 415 |
412 // This is true when we are currently painting. In the legacy renderer, this | 416 // This is true when we are currently painting. In the legacy renderer, this |
413 // means we should handle extra paint requests by expanding the invalid rect | 417 // means we should handle extra paint requests by expanding the invalid rect |
414 // rather than actually painting. In hardware compositing it means that we | 418 // rather than actually painting. In hardware compositing it means that we |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; | 645 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; |
642 | 646 |
643 base::WeakPtrFactory<RenderWidgetHostViewMac> | 647 base::WeakPtrFactory<RenderWidgetHostViewMac> |
644 software_frame_weak_ptr_factory_; | 648 software_frame_weak_ptr_factory_; |
645 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 649 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
646 }; | 650 }; |
647 | 651 |
648 } // namespace content | 652 } // namespace content |
649 | 653 |
650 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 654 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |