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_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; | 69 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; |
70 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | 70 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
71 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; | 71 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; |
72 virtual void OnTabCrashed(base::TerminationStatus status, | 72 virtual void OnTabCrashed(base::TerminationStatus status, |
73 int error_code) OVERRIDE; | 73 int error_code) OVERRIDE; |
74 virtual void SizeContents(const gfx::Size& size) OVERRIDE; | 74 virtual void SizeContents(const gfx::Size& size) OVERRIDE; |
75 virtual void Focus() OVERRIDE; | 75 virtual void Focus() OVERRIDE; |
76 virtual void SetInitialFocus() OVERRIDE; | 76 virtual void SetInitialFocus() OVERRIDE; |
77 virtual void StoreFocus() OVERRIDE; | 77 virtual void StoreFocus() OVERRIDE; |
78 virtual void RestoreFocus() OVERRIDE; | 78 virtual void RestoreFocus() OVERRIDE; |
79 virtual WebDropData* GetDropData() const OVERRIDE; | 79 virtual DropData* GetDropData() const OVERRIDE; |
80 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 80 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
81 virtual void SetAllowOverlappingViews(bool overlapping) OVERRIDE; | 81 virtual void SetAllowOverlappingViews(bool overlapping) OVERRIDE; |
82 virtual bool GetAllowOverlappingViews() const OVERRIDE; | 82 virtual bool GetAllowOverlappingViews() const OVERRIDE; |
83 | 83 |
84 // WebContentsViewPort implementation ---------------------------------------- | 84 // WebContentsViewPort implementation ---------------------------------------- |
85 virtual void CreateView( | 85 virtual void CreateView( |
86 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; | 86 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; |
87 virtual RenderWidgetHostView* CreateViewForWidget( | 87 virtual RenderWidgetHostView* CreateViewForWidget( |
88 RenderWidgetHost* render_widget_host) OVERRIDE; | 88 RenderWidgetHost* render_widget_host) OVERRIDE; |
89 virtual RenderWidgetHostView* CreateViewForPopupWidget( | 89 virtual RenderWidgetHostView* CreateViewForPopupWidget( |
90 RenderWidgetHost* render_widget_host) OVERRIDE; | 90 RenderWidgetHost* render_widget_host) OVERRIDE; |
91 virtual void SetPageTitle(const string16& title) OVERRIDE; | 91 virtual void SetPageTitle(const string16& title) OVERRIDE; |
92 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 92 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
93 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; | 93 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; |
94 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; | 94 virtual void SetOverscrollControllerEnabled(bool enabled) OVERRIDE; |
95 virtual bool IsEventTracking() const OVERRIDE; | 95 virtual bool IsEventTracking() const OVERRIDE; |
96 virtual void CloseTabAfterEventTracking() OVERRIDE; | 96 virtual void CloseTabAfterEventTracking() OVERRIDE; |
97 | 97 |
98 // Backend implementation of RenderViewHostDelegateView. | 98 // Backend implementation of RenderViewHostDelegateView. |
99 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE; | 99 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE; |
100 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 100 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
101 int item_height, | 101 int item_height, |
102 double item_font_size, | 102 double item_font_size, |
103 int selected_item, | 103 int selected_item, |
104 const std::vector<WebMenuItem>& items, | 104 const std::vector<WebMenuItem>& items, |
105 bool right_aligned, | 105 bool right_aligned, |
106 bool allow_multiple_selection) OVERRIDE; | 106 bool allow_multiple_selection) OVERRIDE; |
107 virtual void StartDragging(const WebDropData& drop_data, | 107 virtual void StartDragging(const DropData& drop_data, |
108 WebKit::WebDragOperationsMask allowed_operations, | 108 WebKit::WebDragOperationsMask allowed_operations, |
109 const gfx::ImageSkia& image, | 109 const gfx::ImageSkia& image, |
110 const gfx::Vector2d& image_offset, | 110 const gfx::Vector2d& image_offset, |
111 const DragEventSourceInfo& event_info) OVERRIDE; | 111 const DragEventSourceInfo& event_info) OVERRIDE; |
112 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | 112 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; |
113 virtual void GotFocus() OVERRIDE; | 113 virtual void GotFocus() OVERRIDE; |
114 virtual void TakeFocus(bool reverse) OVERRIDE; | 114 virtual void TakeFocus(bool reverse) OVERRIDE; |
115 | 115 |
116 // A helper method for closing the tab in the | 116 // A helper method for closing the tab in the |
117 // CloseTabAfterEventTracking() implementation. | 117 // CloseTabAfterEventTracking() implementation. |
(...skipping 18 matching lines...) Expand all Loading... |
136 | 136 |
137 // Whether to allow overlapping views. | 137 // Whether to allow overlapping views. |
138 bool allow_overlapping_views_; | 138 bool allow_overlapping_views_; |
139 | 139 |
140 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); | 140 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); |
141 }; | 141 }; |
142 | 142 |
143 } // namespace content | 143 } // namespace content |
144 | 144 |
145 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 145 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
OLD | NEW |