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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 base::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, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |