| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 // WebContentsViewPort implementation ---------------------------------------- | 81 // WebContentsViewPort implementation ---------------------------------------- |
| 82 virtual void CreateView( | 82 virtual void CreateView( |
| 83 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; | 83 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; |
| 84 virtual RenderWidgetHostView* CreateViewForWidget( | 84 virtual RenderWidgetHostView* CreateViewForWidget( |
| 85 RenderWidgetHost* render_widget_host) OVERRIDE; | 85 RenderWidgetHost* render_widget_host) OVERRIDE; |
| 86 virtual RenderWidgetHostView* CreateViewForPopupWidget( | 86 virtual RenderWidgetHostView* CreateViewForPopupWidget( |
| 87 RenderWidgetHost* render_widget_host) OVERRIDE; | 87 RenderWidgetHost* render_widget_host) OVERRIDE; |
| 88 virtual void SetPageTitle(const string16& title) OVERRIDE; | 88 virtual void SetPageTitle(const string16& title) OVERRIDE; |
| 89 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 89 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
| 90 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; | 90 virtual void RenderViewSwappedIn(RenderViewHost* new_host, |
| 91 RenderViewHost* old_host) OVERRIDE; |
| 91 virtual bool IsEventTracking() const OVERRIDE; | 92 virtual bool IsEventTracking() const OVERRIDE; |
| 92 virtual void CloseTabAfterEventTracking() OVERRIDE; | 93 virtual void CloseTabAfterEventTracking() OVERRIDE; |
| 93 | 94 |
| 94 // Backend implementation of RenderViewHostDelegateView. | 95 // Backend implementation of RenderViewHostDelegateView. |
| 95 virtual void ShowContextMenu(const ContextMenuParams& params, | 96 virtual void ShowContextMenu(const ContextMenuParams& params, |
| 96 ContextMenuSourceType type) OVERRIDE; | 97 ContextMenuSourceType type) OVERRIDE; |
| 97 virtual void ShowPopupMenu(const gfx::Rect& bounds, | 98 virtual void ShowPopupMenu(const gfx::Rect& bounds, |
| 98 int item_height, | 99 int item_height, |
| 99 double item_font_size, | 100 double item_font_size, |
| 100 int selected_item, | 101 int selected_item, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 134 |
| 134 // Whether to allow overlapping views. | 135 // Whether to allow overlapping views. |
| 135 bool allow_overlapping_views_; | 136 bool allow_overlapping_views_; |
| 136 | 137 |
| 137 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); | 138 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); |
| 138 }; | 139 }; |
| 139 | 140 |
| 140 } // namespace content | 141 } // namespace content |
| 141 | 142 |
| 142 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 143 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
| OLD | NEW |