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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 WebDropData* 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 | 83 |
83 // WebContentsViewPort implementation ---------------------------------------- | 84 // WebContentsViewPort implementation ---------------------------------------- |
84 virtual void CreateView( | 85 virtual void CreateView( |
85 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; | 86 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; |
86 virtual RenderWidgetHostView* CreateViewForWidget( | 87 virtual RenderWidgetHostView* CreateViewForWidget( |
87 RenderWidgetHost* render_widget_host) OVERRIDE; | 88 RenderWidgetHost* render_widget_host) OVERRIDE; |
88 virtual RenderWidgetHostView* CreateViewForPopupWidget( | 89 virtual RenderWidgetHostView* CreateViewForPopupWidget( |
89 RenderWidgetHost* render_widget_host) OVERRIDE; | 90 RenderWidgetHost* render_widget_host) OVERRIDE; |
90 virtual void SetPageTitle(const string16& title) OVERRIDE; | 91 virtual void SetPageTitle(const string16& title) OVERRIDE; |
91 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 92 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 137 |
137 // Whether to allow overlapping views. | 138 // Whether to allow overlapping views. |
138 bool allow_overlapping_views_; | 139 bool allow_overlapping_views_; |
139 | 140 |
140 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); | 141 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); |
141 }; | 142 }; |
142 | 143 |
143 } // namespace content | 144 } // namespace content |
144 | 145 |
145 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 146 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
OLD | NEW |