| 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_WIN_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 6 #define CHROME_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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 virtual gfx::Rect GetViewBounds() const; | 144 virtual gfx::Rect GetViewBounds() const; |
| 145 virtual void UpdateCursor(const WebCursor& cursor); | 145 virtual void UpdateCursor(const WebCursor& cursor); |
| 146 virtual void SetIsLoading(bool is_loading); | 146 virtual void SetIsLoading(bool is_loading); |
| 147 virtual void ImeUpdateTextInputState(WebKit::WebTextInputType type, | 147 virtual void ImeUpdateTextInputState(WebKit::WebTextInputType type, |
| 148 const gfx::Rect& caret_rect); | 148 const gfx::Rect& caret_rect); |
| 149 virtual void ImeCancelComposition(); | 149 virtual void ImeCancelComposition(); |
| 150 virtual void DidUpdateBackingStore( | 150 virtual void DidUpdateBackingStore( |
| 151 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, | 151 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, |
| 152 const std::vector<gfx::Rect>& copy_rects); | 152 const std::vector<gfx::Rect>& copy_rects); |
| 153 virtual void RenderViewGone(); | 153 virtual void RenderViewGone(); |
| 154 virtual void WillWmDestroy(); // called by TabContents before DestroyWindow |
| 154 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh); | 155 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh); |
| 155 virtual void Destroy(); | 156 virtual void Destroy(); |
| 156 virtual void SetTooltipText(const std::wstring& tooltip_text); | 157 virtual void SetTooltipText(const std::wstring& tooltip_text); |
| 157 virtual BackingStore* AllocBackingStore(const gfx::Size& size); | 158 virtual BackingStore* AllocBackingStore(const gfx::Size& size); |
| 158 virtual void SetBackground(const SkBitmap& background); | 159 virtual void SetBackground(const SkBitmap& background); |
| 159 virtual bool ContainsNativeView(gfx::NativeView native_view) const; | 160 virtual bool ContainsNativeView(gfx::NativeView native_view) const; |
| 160 virtual void SetVisuallyDeemphasized(bool deemphasized); | 161 virtual void SetVisuallyDeemphasized(bool deemphasized); |
| 162 |
| 163 virtual gfx::PluginWindowHandle CreateCompositorHostWindow(); |
| 164 virtual void ShowCompositorHostWindow(bool show); |
| 165 |
| 161 virtual void OnAccessibilityNotifications( | 166 virtual void OnAccessibilityNotifications( |
| 162 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params); | 167 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params); |
| 163 | 168 |
| 164 // Implementation of NotificationObserver: | 169 // Implementation of NotificationObserver: |
| 165 virtual void Observe(NotificationType type, | 170 virtual void Observe(NotificationType type, |
| 166 const NotificationSource& source, | 171 const NotificationSource& source, |
| 167 const NotificationDetails& details); | 172 const NotificationDetails& details); |
| 168 | 173 |
| 169 // Implementation of BrowserAccessibilityDelegate: | 174 // Implementation of BrowserAccessibilityDelegate: |
| 170 virtual void SetAccessibilityFocus(int acc_obj_id); | 175 virtual void SetAccessibilityFocus(int acc_obj_id); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 260 |
| 256 // Create an intermediate window between the given HWND and its parent. | 261 // Create an intermediate window between the given HWND and its parent. |
| 257 HWND ReparentWindow(HWND window); | 262 HWND ReparentWindow(HWND window); |
| 258 | 263 |
| 259 // Whether the window should be activated. | 264 // Whether the window should be activated. |
| 260 bool IsActivatable() const; | 265 bool IsActivatable() const; |
| 261 | 266 |
| 262 // The associated Model. | 267 // The associated Model. |
| 263 RenderWidgetHost* render_widget_host_; | 268 RenderWidgetHost* render_widget_host_; |
| 264 | 269 |
| 270 // When we are doing accelerated compositing |
| 271 HWND compositor_host_window_; |
| 272 |
| 265 // The cursor for the page. This is passed up from the renderer. | 273 // The cursor for the page. This is passed up from the renderer. |
| 266 WebCursor current_cursor_; | 274 WebCursor current_cursor_; |
| 267 | 275 |
| 268 // Indicates if the page is loading. | 276 // Indicates if the page is loading. |
| 269 bool is_loading_; | 277 bool is_loading_; |
| 270 | 278 |
| 271 // true if we are currently tracking WM_MOUSEEXIT messages. | 279 // true if we are currently tracking WM_MOUSEEXIT messages. |
| 272 bool track_mouse_leave_; | 280 bool track_mouse_leave_; |
| 273 | 281 |
| 274 // Wrapper class for IME input. | 282 // Wrapper class for IME input. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 // Stores the current text input type received by ImeUpdateTextInputState() | 347 // Stores the current text input type received by ImeUpdateTextInputState() |
| 340 // method. | 348 // method. |
| 341 WebKit::WebTextInputType text_input_type_; | 349 WebKit::WebTextInputType text_input_type_; |
| 342 | 350 |
| 343 ScopedVector<app::win::ScopedProp> props_; | 351 ScopedVector<app::win::ScopedProp> props_; |
| 344 | 352 |
| 345 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 353 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
| 346 }; | 354 }; |
| 347 | 355 |
| 348 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 356 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
| OLD | NEW |