OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 6 #define CONTENT_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 #include <peninputpanel.h> | 13 #include <peninputpanel.h> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/memory/scoped_vector.h" | 18 #include "base/memory/scoped_vector.h" |
19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
20 #include "base/time.h" | 20 #include "base/time.h" |
21 #include "base/win/scoped_comptr.h" | 21 #include "base/win/scoped_comptr.h" |
22 #include "content/browser/accessibility/browser_accessibility_manager.h" | 22 #include "content/browser/accessibility/browser_accessibility_manager.h" |
23 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 23 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
24 #include "content/common/content_export.h" | 24 #include "content/common/content_export.h" |
25 #include "content/public/browser/notification_observer.h" | 25 #include "content/public/browser/notification_observer.h" |
26 #include "content/public/browser/notification_registrar.h" | 26 #include "content/public/browser/notification_registrar.h" |
27 #include "ui/base/win/ime_input.h" | 27 #include "ui/base/win/ime_input.h" |
28 #include "ui/gfx/native_widget_types.h" | 28 #include "ui/gfx/native_widget_types.h" |
29 #include "ui/gfx/point.h" | 29 #include "ui/gfx/point.h" |
30 #include "ui/gfx/scoped_sk_region.h" | |
31 #include "ui/gfx/surface/accelerated_surface_win.h" | 30 #include "ui/gfx/surface/accelerated_surface_win.h" |
32 #include "webkit/glue/webcursor.h" | 31 #include "webkit/glue/webcursor.h" |
33 | 32 |
34 class BackingStore; | 33 class BackingStore; |
35 class RenderWidgetHost; | 34 class RenderWidgetHost; |
| 35 class SkRegion; |
36 | 36 |
37 namespace gfx { | 37 namespace gfx { |
38 class Size; | 38 class Size; |
39 class Rect; | 39 class Rect; |
40 } | 40 } |
41 | 41 |
42 namespace IPC { | 42 namespace IPC { |
43 class Message; | 43 class Message; |
44 } | 44 } |
45 | 45 |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 // Set to true if we are in the context of a WM_POINTERDOWN message | 548 // Set to true if we are in the context of a WM_POINTERDOWN message |
549 bool pointer_down_context_; | 549 bool pointer_down_context_; |
550 | 550 |
551 // Set to true if the focus is currently on an editable field on the page. | 551 // Set to true if the focus is currently on an editable field on the page. |
552 bool focus_on_editable_field_; | 552 bool focus_on_editable_field_; |
553 | 553 |
554 // Set to true if we received a focus change after a WM_POINTERDOWN message. | 554 // Set to true if we received a focus change after a WM_POINTERDOWN message. |
555 bool received_focus_change_after_pointer_down_; | 555 bool received_focus_change_after_pointer_down_; |
556 | 556 |
557 // Region in which the view will be transparent to clicks. | 557 // Region in which the view will be transparent to clicks. |
558 gfx::ScopedSkRegion transparent_region_; | 558 scoped_ptr<SkRegion> transparent_region_; |
559 | 559 |
560 // Are touch events currently enabled? | 560 // Are touch events currently enabled? |
561 bool touch_events_enabled_; | 561 bool touch_events_enabled_; |
562 | 562 |
563 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 563 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
564 }; | 564 }; |
565 | 565 |
566 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 566 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
OLD | NEW |