| 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <atlbase.h> | 9 #include <atlbase.h> |
| 10 #include <atlapp.h> | 10 #include <atlapp.h> |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // Comment excerpted from render_widget_host.h: | 78 // Comment excerpted from render_widget_host.h: |
| 79 // | 79 // |
| 80 // "The lifetime of the RenderWidgetHostHWND is tied to the render process. | 80 // "The lifetime of the RenderWidgetHostHWND is tied to the render process. |
| 81 // If the render process dies, the RenderWidgetHostHWND goes away and all | 81 // If the render process dies, the RenderWidgetHostHWND goes away and all |
| 82 // references to it must become NULL." | 82 // references to it must become NULL." |
| 83 // | 83 // |
| 84 class RenderWidgetHostViewWin | 84 class RenderWidgetHostViewWin |
| 85 : public CWindowImpl<RenderWidgetHostViewWin, | 85 : public CWindowImpl<RenderWidgetHostViewWin, |
| 86 CWindow, | 86 CWindow, |
| 87 RenderWidgetHostHWNDTraits>, | 87 RenderWidgetHostHWNDTraits>, |
| 88 public RenderWidgetHostViewBase, | 88 public content::RenderWidgetHostViewBase, |
| 89 public content::NotificationObserver, | 89 public content::NotificationObserver, |
| 90 public BrowserAccessibilityDelegate { | 90 public BrowserAccessibilityDelegate { |
| 91 public: | 91 public: |
| 92 virtual ~RenderWidgetHostViewWin(); | 92 virtual ~RenderWidgetHostViewWin(); |
| 93 | 93 |
| 94 CONTENT_EXPORT void CreateWnd(HWND parent); | 94 CONTENT_EXPORT void CreateWnd(HWND parent); |
| 95 | 95 |
| 96 void ScheduleComposite(); | 96 void ScheduleComposite(); |
| 97 | 97 |
| 98 DECLARE_WND_CLASS_EX(kRenderWidgetHostHWNDClass, CS_DBLCLKS, 0); | 98 DECLARE_WND_CLASS_EX(kRenderWidgetHostHWNDClass, CS_DBLCLKS, 0); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 158 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
| 159 virtual bool HasFocus() const OVERRIDE; | 159 virtual bool HasFocus() const OVERRIDE; |
| 160 virtual void Show() OVERRIDE; | 160 virtual void Show() OVERRIDE; |
| 161 virtual void Hide() OVERRIDE; | 161 virtual void Hide() OVERRIDE; |
| 162 virtual bool IsShowing() OVERRIDE; | 162 virtual bool IsShowing() OVERRIDE; |
| 163 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 163 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
| 164 virtual void UnhandledWheelEvent( | 164 virtual void UnhandledWheelEvent( |
| 165 const WebKit::WebMouseWheelEvent& event) OVERRIDE; | 165 const WebKit::WebMouseWheelEvent& event) OVERRIDE; |
| 166 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 166 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
| 167 | 167 |
| 168 // Implementation of RenderWidgetHostViewBase. | 168 // Implementation of RenderWidgetHostViewPort. |
| 169 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 169 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 170 const gfx::Rect& pos) OVERRIDE; | 170 const gfx::Rect& pos) OVERRIDE; |
| 171 virtual void InitAsFullscreen( | 171 virtual void InitAsFullscreen( |
| 172 RenderWidgetHostView* reference_host_view) OVERRIDE; | 172 RenderWidgetHostView* reference_host_view) OVERRIDE; |
| 173 virtual void DidBecomeSelected() OVERRIDE; | 173 virtual void DidBecomeSelected() OVERRIDE; |
| 174 virtual void WasHidden() OVERRIDE; | 174 virtual void WasHidden() OVERRIDE; |
| 175 virtual void MovePluginWindows( | 175 virtual void MovePluginWindows( |
| 176 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; | 176 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; |
| 177 virtual void Focus() OVERRIDE; | 177 virtual void Focus() OVERRIDE; |
| 178 virtual void Blur() OVERRIDE; | 178 virtual void Blur() OVERRIDE; |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 // Set to true if the focus is currently on an editable field on the page. | 536 // Set to true if the focus is currently on an editable field on the page. |
| 537 bool focus_on_editable_field_; | 537 bool focus_on_editable_field_; |
| 538 | 538 |
| 539 // Set to true if we received a focus change after a WM_POINTERDOWN message. | 539 // Set to true if we received a focus change after a WM_POINTERDOWN message. |
| 540 bool received_focus_change_after_pointer_down_; | 540 bool received_focus_change_after_pointer_down_; |
| 541 | 541 |
| 542 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 542 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
| 543 }; | 543 }; |
| 544 | 544 |
| 545 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 545 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
| OLD | NEW |