| 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> |
| 11 #include <atlcrack.h> | 11 #include <atlcrack.h> |
| 12 #include <atlmisc.h> | 12 #include <atlmisc.h> |
| 13 #include <peninputpanel.h> | 13 #include <peninputpanel.h> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 18 #include "base/memory/scoped_vector.h" | 18 #include "base/memory/scoped_vector.h" |
| 19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
| 20 #include "base/time.h" | 20 #include "base/time.h" |
| 21 #include "base/win/scoped_comptr.h" | 21 #include "base/win/scoped_comptr.h" |
| 22 #include "content/browser/accessibility/browser_accessibility_manager.h" | 22 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 23 #include "content/browser/renderer_host/render_widget_host_view.h" | 23 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 24 #include "content/common/content_export.h" | 24 #include "content/common/content_export.h" |
| 25 #include "content/public/browser/notification_observer.h" | 25 #include "content/public/browser/notification_observer.h" |
| 26 #include "content/public/browser/notification_registrar.h" | 26 #include "content/public/browser/notification_registrar.h" |
| 27 #include "ui/base/win/ime_input.h" | 27 #include "ui/base/win/ime_input.h" |
| 28 #include "ui/gfx/native_widget_types.h" | 28 #include "ui/gfx/native_widget_types.h" |
| 29 #include "ui/gfx/point.h" | 29 #include "ui/gfx/point.h" |
| 30 #include "ui/gfx/surface/accelerated_surface_win.h" | 30 #include "ui/gfx/surface/accelerated_surface_win.h" |
| 31 #include "webkit/glue/webcursor.h" | 31 #include "webkit/glue/webcursor.h" |
| 32 | 32 |
| 33 class BackingStore; | 33 class BackingStore; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 RenderWidgetHostViewPort. | 168 // Implementation of RenderWidgetHostViewPort. |
| 169 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 169 virtual void InitAsPopup(content::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 content::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; |
| 179 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; | 179 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; |
| 180 virtual void SetIsLoading(bool is_loading) OVERRIDE; | 180 virtual void SetIsLoading(bool is_loading) OVERRIDE; |
| 181 virtual void TextInputStateChanged(ui::TextInputType type, | 181 virtual void TextInputStateChanged(ui::TextInputType type, |
| 182 bool can_compose_inline) OVERRIDE; | 182 bool can_compose_inline) OVERRIDE; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; | 223 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; |
| 224 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE; | 224 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE; |
| 225 virtual void AccessibilityScrollToMakeVisible( | 225 virtual void AccessibilityScrollToMakeVisible( |
| 226 int acc_obj_id, gfx::Rect subfocus) OVERRIDE; | 226 int acc_obj_id, gfx::Rect subfocus) OVERRIDE; |
| 227 virtual void AccessibilityScrollToPoint( | 227 virtual void AccessibilityScrollToPoint( |
| 228 int acc_obj_id, gfx::Point point) OVERRIDE; | 228 int acc_obj_id, gfx::Point point) OVERRIDE; |
| 229 virtual void AccessibilitySetTextSelection( | 229 virtual void AccessibilitySetTextSelection( |
| 230 int acc_obj_id, int start_offset, int end_offset) OVERRIDE; | 230 int acc_obj_id, int start_offset, int end_offset) OVERRIDE; |
| 231 | 231 |
| 232 protected: | 232 protected: |
| 233 friend class RenderWidgetHostView; | 233 friend class content::RenderWidgetHostView; |
| 234 | 234 |
| 235 // Should construct only via RenderWidgetHostView::CreateViewForWidget. | 235 // Should construct only via RenderWidgetHostView::CreateViewForWidget. |
| 236 // | 236 // |
| 237 // The view will associate itself with the given widget. | 237 // The view will associate itself with the given widget. |
| 238 explicit RenderWidgetHostViewWin(RenderWidgetHost* widget); | 238 explicit RenderWidgetHostViewWin(RenderWidgetHost* widget); |
| 239 | 239 |
| 240 // Windows Message Handlers | 240 // Windows Message Handlers |
| 241 LRESULT OnCreate(CREATESTRUCT* create_struct); | 241 LRESULT OnCreate(CREATESTRUCT* create_struct); |
| 242 void OnActivate(UINT, BOOL, HWND); | 242 void OnActivate(UINT, BOOL, HWND); |
| 243 void OnDestroy(); | 243 void OnDestroy(); |
| (...skipping 292 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 |