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> |
11 #include <atlcrack.h> | 11 #include <atlcrack.h> |
12 #include <atlmisc.h> | 12 #include <atlmisc.h> |
13 | 13 |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/scoped_comptr_win.h" | 16 #include "base/scoped_comptr_win.h" |
17 #include "base/scoped_ptr.h" | 17 #include "base/scoped_ptr.h" |
18 #include "base/scoped_vector.h" | 18 #include "base/scoped_vector.h" |
19 #include "base/task.h" | 19 #include "base/task.h" |
20 #include "chrome/browser/accessibility/browser_accessibility_manager.h" | 20 #include "chrome/browser/accessibility/browser_accessibility_manager.h" |
21 #include "chrome/browser/ime_input.h" | 21 #include "chrome/browser/ime_input.h" |
22 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 22 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
23 #include "chrome/common/notification_observer.h" | 23 #include "chrome/common/notification_observer.h" |
24 #include "chrome/common/notification_registrar.h" | 24 #include "chrome/common/notification_registrar.h" |
| 25 #include "gfx/native_widget_types.h" |
25 #include "webkit/glue/webcursor.h" | 26 #include "webkit/glue/webcursor.h" |
26 | 27 |
27 namespace app { | 28 namespace app { |
28 | |
29 class ViewProp; | 29 class ViewProp; |
30 | |
31 namespace win { | |
32 class ScopedProp; | |
33 } | |
34 } | 30 } |
35 | 31 |
36 namespace gfx { | 32 namespace gfx { |
37 class Size; | 33 class Size; |
38 class Rect; | 34 class Rect; |
39 } | 35 } |
40 | 36 |
41 namespace IPC { | 37 namespace IPC { |
42 class Message; | 38 class Message; |
43 } | 39 } |
44 | 40 |
45 class BackingStore; | 41 class BackingStore; |
46 class RenderWidgetHost; | 42 class RenderWidgetHost; |
47 | 43 |
48 typedef CWinTraits<WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, 0> | 44 typedef CWinTraits<WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, 0> |
49 RenderWidgetHostHWNDTraits; | 45 RenderWidgetHostHWNDTraits; |
50 | 46 |
51 static const wchar_t* const kRenderWidgetHostHWNDClass = | 47 extern const wchar_t kRenderWidgetHostHWNDClass[]; |
52 L"Chrome_RenderWidgetHostHWND"; | |
53 | 48 |
54 /////////////////////////////////////////////////////////////////////////////// | 49 /////////////////////////////////////////////////////////////////////////////// |
55 // RenderWidgetHostViewWin | 50 // RenderWidgetHostViewWin |
56 // | 51 // |
57 // An object representing the "View" of a rendered web page. This object is | 52 // An object representing the "View" of a rendered web page. This object is |
58 // responsible for displaying the content of the web page, receiving windows | 53 // responsible for displaying the content of the web page, receiving windows |
59 // messages, and containing plugins HWNDs. It is the implementation of the | 54 // messages, and containing plugins HWNDs. It is the implementation of the |
60 // RenderWidgetHostView that the cross-platform RenderWidgetHost object uses | 55 // RenderWidgetHostView that the cross-platform RenderWidgetHost object uses |
61 // to display the data. | 56 // to display the data. |
62 // | 57 // |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 bool visually_deemphasized_; | 343 bool visually_deemphasized_; |
349 | 344 |
350 // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events. | 345 // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events. |
351 NotificationRegistrar registrar_; | 346 NotificationRegistrar registrar_; |
352 | 347 |
353 // Stores the current text input type received by ImeUpdateTextInputState() | 348 // Stores the current text input type received by ImeUpdateTextInputState() |
354 // method. | 349 // method. |
355 WebKit::WebTextInputType text_input_type_; | 350 WebKit::WebTextInputType text_input_type_; |
356 | 351 |
357 ScopedVector<app::ViewProp> props_; | 352 ScopedVector<app::ViewProp> props_; |
358 scoped_ptr<app::win::ScopedProp> renderer_id_prop_; | |
359 | 353 |
360 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 354 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
361 }; | 355 }; |
362 | 356 |
363 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 357 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
OLD | NEW |