OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 public RenderWidgetHostView, | 68 public RenderWidgetHostView, |
69 public NotificationObserver, | 69 public NotificationObserver, |
70 public BrowserAccessibilityDelegate { | 70 public BrowserAccessibilityDelegate { |
71 public: | 71 public: |
72 // The view will associate itself with the given widget. | 72 // The view will associate itself with the given widget. |
73 explicit RenderWidgetHostViewWin(RenderWidgetHost* widget); | 73 explicit RenderWidgetHostViewWin(RenderWidgetHost* widget); |
74 virtual ~RenderWidgetHostViewWin(); | 74 virtual ~RenderWidgetHostViewWin(); |
75 | 75 |
76 void CreateWnd(HWND parent); | 76 void CreateWnd(HWND parent); |
77 | 77 |
| 78 void ScheduleComposite(); |
| 79 |
78 DECLARE_WND_CLASS_EX(kRenderWidgetHostHWNDClass, CS_DBLCLKS, 0); | 80 DECLARE_WND_CLASS_EX(kRenderWidgetHostHWNDClass, CS_DBLCLKS, 0); |
79 | 81 |
80 BEGIN_MSG_MAP(RenderWidgetHostHWND) | 82 BEGIN_MSG_MAP(RenderWidgetHostHWND) |
81 MSG_WM_CREATE(OnCreate) | 83 MSG_WM_CREATE(OnCreate) |
82 MSG_WM_ACTIVATE(OnActivate) | 84 MSG_WM_ACTIVATE(OnActivate) |
83 MSG_WM_DESTROY(OnDestroy) | 85 MSG_WM_DESTROY(OnDestroy) |
84 MSG_WM_PAINT(OnPaint) | 86 MSG_WM_PAINT(OnPaint) |
85 MSG_WM_NCPAINT(OnNCPaint) | 87 MSG_WM_NCPAINT(OnNCPaint) |
86 MSG_WM_ERASEBKGND(OnEraseBkgnd) | 88 MSG_WM_ERASEBKGND(OnEraseBkgnd) |
87 MSG_WM_SETCURSOR(OnSetCursor) | 89 MSG_WM_SETCURSOR(OnSetCursor) |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 WebKit::WebTextInputType text_input_type_; | 362 WebKit::WebTextInputType text_input_type_; |
361 | 363 |
362 ScopedVector<ui::ViewProp> props_; | 364 ScopedVector<ui::ViewProp> props_; |
363 | 365 |
364 scoped_ptr<ui::ViewProp> accessibility_prop_; | 366 scoped_ptr<ui::ViewProp> accessibility_prop_; |
365 | 367 |
366 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 368 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
367 }; | 369 }; |
368 | 370 |
369 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 371 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
OLD | NEW |