OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 explicit RenderWidgetHostViewViews(RenderWidgetHost* widget); | 35 explicit RenderWidgetHostViewViews(RenderWidgetHost* widget); |
36 virtual ~RenderWidgetHostViewViews(); | 36 virtual ~RenderWidgetHostViewViews(); |
37 | 37 |
38 // Initialize this object for use as a drawing area. | 38 // Initialize this object for use as a drawing area. |
39 void InitAsChild(); | 39 void InitAsChild(); |
40 | 40 |
41 // RenderWidgetHostView implementation. | 41 // RenderWidgetHostView implementation. |
42 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 42 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
43 const gfx::Rect& pos); | 43 const gfx::Rect& pos); |
44 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view); | 44 virtual void InitAsFullscreen(); |
45 virtual RenderWidgetHost* GetRenderWidgetHost() const; | 45 virtual RenderWidgetHost* GetRenderWidgetHost() const; |
46 virtual void DidBecomeSelected(); | 46 virtual void DidBecomeSelected(); |
47 virtual void WasHidden(); | 47 virtual void WasHidden(); |
48 virtual void SetSize(const gfx::Size& size); | 48 virtual void SetSize(const gfx::Size& size); |
49 virtual gfx::NativeView GetNativeView(); | 49 virtual gfx::NativeView GetNativeView(); |
50 virtual void MovePluginWindows( | 50 virtual void MovePluginWindows( |
51 const std::vector<webkit::npapi::WebPluginGeometry>& moves); | 51 const std::vector<webkit::npapi::WebPluginGeometry>& moves); |
52 virtual void Focus(); | 52 virtual void Focus(); |
53 virtual void Blur(); | 53 virtual void Blur(); |
54 virtual bool HasFocus(); | 54 virtual bool HasFocus(); |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 173 |
174 // The touch-event. Its touch-points are updated as necessary. A new | 174 // The touch-event. Its touch-points are updated as necessary. A new |
175 // touch-point is added from an ET_TOUCH_PRESSED event, and a touch-point is | 175 // touch-point is added from an ET_TOUCH_PRESSED event, and a touch-point is |
176 // removed from the list on an ET_TOUCH_RELEASED event. | 176 // removed from the list on an ET_TOUCH_RELEASED event. |
177 WebKit::WebTouchEvent touch_event_; | 177 WebKit::WebTouchEvent touch_event_; |
178 | 178 |
179 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); | 179 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews); |
180 }; | 180 }; |
181 | 181 |
182 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ | 182 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_VIEWS_H_ |
OLD | NEW |