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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(); | 78 void ScheduleComposite(); |
79 | 79 |
| 80 IAccessible* GetIAccessible(); |
| 81 |
80 DECLARE_WND_CLASS_EX(kRenderWidgetHostHWNDClass, CS_DBLCLKS, 0); | 82 DECLARE_WND_CLASS_EX(kRenderWidgetHostHWNDClass, CS_DBLCLKS, 0); |
81 | 83 |
82 BEGIN_MSG_MAP(RenderWidgetHostHWND) | 84 BEGIN_MSG_MAP(RenderWidgetHostHWND) |
83 MSG_WM_CREATE(OnCreate) | 85 MSG_WM_CREATE(OnCreate) |
84 MSG_WM_ACTIVATE(OnActivate) | 86 MSG_WM_ACTIVATE(OnActivate) |
85 MSG_WM_DESTROY(OnDestroy) | 87 MSG_WM_DESTROY(OnDestroy) |
86 MSG_WM_PAINT(OnPaint) | 88 MSG_WM_PAINT(OnPaint) |
87 MSG_WM_NCPAINT(OnNCPaint) | 89 MSG_WM_NCPAINT(OnNCPaint) |
88 MSG_WM_ERASEBKGND(OnEraseBkgnd) | 90 MSG_WM_ERASEBKGND(OnEraseBkgnd) |
89 MSG_WM_SETCURSOR(OnSetCursor) | 91 MSG_WM_SETCURSOR(OnSetCursor) |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 | 359 |
358 // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events. | 360 // Registrar so we can listen to RENDERER_PROCESS_TERMINATED events. |
359 NotificationRegistrar registrar_; | 361 NotificationRegistrar registrar_; |
360 | 362 |
361 // Stores the current text input type received by ImeUpdateTextInputState() | 363 // Stores the current text input type received by ImeUpdateTextInputState() |
362 // method. | 364 // method. |
363 WebKit::WebTextInputType text_input_type_; | 365 WebKit::WebTextInputType text_input_type_; |
364 | 366 |
365 ScopedVector<ui::ViewProp> props_; | 367 ScopedVector<ui::ViewProp> props_; |
366 | 368 |
367 scoped_ptr<ui::ViewProp> accessibility_prop_; | |
368 | |
369 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 369 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
370 }; | 370 }; |
371 | 371 |
372 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 372 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
OLD | NEW |