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 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlapp.h> | 9 #include <atlapp.h> |
10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 virtual void SetBackground(const SkBitmap& background) OVERRIDE; | 163 virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
164 | 164 |
165 // Implementation of RenderWidgetHostViewPort. | 165 // Implementation of RenderWidgetHostViewPort. |
166 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 166 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
167 const gfx::Rect& pos) OVERRIDE; | 167 const gfx::Rect& pos) OVERRIDE; |
168 virtual void InitAsFullscreen( | 168 virtual void InitAsFullscreen( |
169 RenderWidgetHostView* reference_host_view) OVERRIDE; | 169 RenderWidgetHostView* reference_host_view) OVERRIDE; |
170 virtual void WasShown() OVERRIDE; | 170 virtual void WasShown() OVERRIDE; |
171 virtual void WasHidden() OVERRIDE; | 171 virtual void WasHidden() OVERRIDE; |
172 virtual void MovePluginWindows( | 172 virtual void MovePluginWindows( |
| 173 const gfx::Point& scroll_offset, |
173 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; | 174 const std::vector<webkit::npapi::WebPluginGeometry>& moves) OVERRIDE; |
174 virtual void Focus() OVERRIDE; | 175 virtual void Focus() OVERRIDE; |
175 virtual void Blur() OVERRIDE; | 176 virtual void Blur() OVERRIDE; |
176 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; | 177 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; |
177 virtual void SetIsLoading(bool is_loading) OVERRIDE; | 178 virtual void SetIsLoading(bool is_loading) OVERRIDE; |
178 virtual void TextInputStateChanged( | 179 virtual void TextInputStateChanged( |
179 const ViewHostMsg_TextInputState_Params& params) OVERRIDE; | 180 const ViewHostMsg_TextInputState_Params& params) OVERRIDE; |
180 virtual void SelectionBoundsChanged( | 181 virtual void SelectionBoundsChanged( |
181 const gfx::Rect& start_rect, | 182 const gfx::Rect& start_rect, |
182 WebKit::WebTextDirection start_direction, | 183 WebKit::WebTextDirection start_direction, |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 | 374 |
374 // Redraws the window synchronously, and any child windows (i.e. plugins) | 375 // Redraws the window synchronously, and any child windows (i.e. plugins) |
375 // asynchronously. | 376 // asynchronously. |
376 void Redraw(); | 377 void Redraw(); |
377 | 378 |
378 // Draw our background over the given HDC in the given |rect|. The background | 379 // Draw our background over the given HDC in the given |rect|. The background |
379 // will be tiled such that it lines up with existing tiles starting from the | 380 // will be tiled such that it lines up with existing tiles starting from the |
380 // origin of |dc|. | 381 // origin of |dc|. |
381 void DrawBackground(const RECT& rect, CPaintDC* dc); | 382 void DrawBackground(const RECT& rect, CPaintDC* dc); |
382 | 383 |
383 // Create an intermediate window between the given HWND and its parent. | |
384 HWND ReparentWindow(HWND window); | |
385 | |
386 // Clean up the compositor window, if needed. | 384 // Clean up the compositor window, if needed. |
387 void CleanupCompositorWindow(); | 385 void CleanupCompositorWindow(); |
388 | 386 |
389 // Whether the window should be activated. | 387 // Whether the window should be activated. |
390 bool IsActivatable() const; | 388 bool IsActivatable() const; |
391 | 389 |
392 // Do initialization needed by both InitAsPopup() and InitAsFullscreen(). | 390 // Do initialization needed by both InitAsPopup() and InitAsFullscreen(). |
393 void DoPopupOrFullscreenInit(HWND parent_hwnd, | 391 void DoPopupOrFullscreenInit(HWND parent_hwnd, |
394 const gfx::Rect& pos, | 392 const gfx::Rect& pos, |
395 DWORD ex_style); | 393 DWORD ex_style); |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 bool touch_events_enabled_; | 575 bool touch_events_enabled_; |
578 | 576 |
579 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; | 577 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; |
580 | 578 |
581 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 579 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
582 }; | 580 }; |
583 | 581 |
584 } // namespace content | 582 } // namespace content |
585 | 583 |
586 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 584 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
OLD | NEW |