| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 short scroll_position); | 243 short scroll_position); |
| 244 | 244 |
| 245 // Shuts down the render_widget_host_. This is a separate function so we can | 245 // Shuts down the render_widget_host_. This is a separate function so we can |
| 246 // invoke it from the message loop. | 246 // invoke it from the message loop. |
| 247 void ShutdownHost(); | 247 void ShutdownHost(); |
| 248 | 248 |
| 249 // Redraws the window synchronously, and any child windows (i.e. plugins) | 249 // Redraws the window synchronously, and any child windows (i.e. plugins) |
| 250 // asynchronously. | 250 // asynchronously. |
| 251 void Redraw(); | 251 void Redraw(); |
| 252 | 252 |
| 253 // Draw the resize corner bitmap on top of the given HDC, if it intersects the | |
| 254 // given paint rect. | |
| 255 void DrawResizeCorner(const gfx::Rect& paint_rect, HDC dc); | |
| 256 | |
| 257 // Draw our background over the given HDC in the given |rect|. The background | 253 // Draw our background over the given HDC in the given |rect|. The background |
| 258 // will be tiled such that it lines up with existing tiles starting from the | 254 // will be tiled such that it lines up with existing tiles starting from the |
| 259 // origin of |dc|. | 255 // origin of |dc|. |
| 260 void DrawBackground(const RECT& rect, CPaintDC* dc); | 256 void DrawBackground(const RECT& rect, CPaintDC* dc); |
| 261 | 257 |
| 262 // Create an intermediate window between the given HWND and its parent. | 258 // Create an intermediate window between the given HWND and its parent. |
| 263 HWND ReparentWindow(HWND window); | 259 HWND ReparentWindow(HWND window); |
| 264 | 260 |
| 265 // Whether the window should be activated. | 261 // Whether the window should be activated. |
| 266 bool IsActivatable() const; | 262 bool IsActivatable() const; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 // Stores the current text input type received by ImeUpdateTextInputState() | 345 // Stores the current text input type received by ImeUpdateTextInputState() |
| 350 // method. | 346 // method. |
| 351 WebKit::WebTextInputType text_input_type_; | 347 WebKit::WebTextInputType text_input_type_; |
| 352 | 348 |
| 353 ScopedVector<app::win::ScopedProp> props_; | 349 ScopedVector<app::win::ScopedProp> props_; |
| 354 | 350 |
| 355 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 351 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
| 356 }; | 352 }; |
| 357 | 353 |
| 358 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 354 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
| OLD | NEW |