OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 #import <QuartzCore/CALayer.h> | 10 #import <QuartzCore/CALayer.h> |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // be hooked up immediately to the view hierarchy, or else when it is | 166 // be hooked up immediately to the view hierarchy, or else when it is |
167 // deleted it will delete this out from under the caller. | 167 // deleted it will delete this out from under the caller. |
168 explicit RenderWidgetHostViewMac(RenderWidgetHost* widget); | 168 explicit RenderWidgetHostViewMac(RenderWidgetHost* widget); |
169 virtual ~RenderWidgetHostViewMac(); | 169 virtual ~RenderWidgetHostViewMac(); |
170 | 170 |
171 RenderWidgetHostViewCocoa* native_view() const { return cocoa_view_; } | 171 RenderWidgetHostViewCocoa* native_view() const { return cocoa_view_; } |
172 | 172 |
173 // Implementation of RenderWidgetHostView: | 173 // Implementation of RenderWidgetHostView: |
174 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 174 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
175 const gfx::Rect& pos); | 175 const gfx::Rect& pos); |
| 176 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view); |
176 virtual RenderWidgetHost* GetRenderWidgetHost() const; | 177 virtual RenderWidgetHost* GetRenderWidgetHost() const; |
177 virtual void DidBecomeSelected(); | 178 virtual void DidBecomeSelected(); |
178 virtual void WasHidden(); | 179 virtual void WasHidden(); |
179 virtual void SetSize(const gfx::Size& size); | 180 virtual void SetSize(const gfx::Size& size); |
180 virtual gfx::NativeView GetNativeView(); | 181 virtual gfx::NativeView GetNativeView(); |
181 virtual void MovePluginWindows( | 182 virtual void MovePluginWindows( |
182 const std::vector<webkit_glue::WebPluginGeometry>& moves); | 183 const std::vector<webkit_glue::WebPluginGeometry>& moves); |
183 virtual void Focus(); | 184 virtual void Focus(); |
184 virtual void Blur(); | 185 virtual void Blur(); |
185 virtual bool HasFocus(); | 186 virtual bool HasFocus(); |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 // Whether or not web accessibility is enabled. | 331 // Whether or not web accessibility is enabled. |
331 bool renderer_accessible_; | 332 bool renderer_accessible_; |
332 | 333 |
333 // selected text on the renderer. | 334 // selected text on the renderer. |
334 std::string selected_text_; | 335 std::string selected_text_; |
335 | 336 |
336 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 337 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
337 }; | 338 }; |
338 | 339 |
339 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 340 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |