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 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlapp.h> | 9 #include <atlapp.h> |
10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
277 virtual bool GetSelectionRange(ui::Range* range) OVERRIDE; | 277 virtual bool GetSelectionRange(ui::Range* range) OVERRIDE; |
278 virtual bool SetSelectionRange(const ui::Range& range) OVERRIDE; | 278 virtual bool SetSelectionRange(const ui::Range& range) OVERRIDE; |
279 virtual bool DeleteRange(const ui::Range& range) OVERRIDE; | 279 virtual bool DeleteRange(const ui::Range& range) OVERRIDE; |
280 virtual bool GetTextFromRange(const ui::Range& range, | 280 virtual bool GetTextFromRange(const ui::Range& range, |
281 string16* text) OVERRIDE; | 281 string16* text) OVERRIDE; |
282 virtual void OnInputMethodChanged() OVERRIDE; | 282 virtual void OnInputMethodChanged() OVERRIDE; |
283 virtual bool ChangeTextDirectionAndLayoutAlignment( | 283 virtual bool ChangeTextDirectionAndLayoutAlignment( |
284 base::i18n::TextDirection direction) OVERRIDE; | 284 base::i18n::TextDirection direction) OVERRIDE; |
285 virtual void ExtendSelectionAndDelete(size_t before, size_t after) OVERRIDE; | 285 virtual void ExtendSelectionAndDelete(size_t before, size_t after) OVERRIDE; |
286 | 286 |
287 bool has_valid_long_press_gesture() { return has_valid_long_press_gesture_; } | |
dcheng
2013/04/15 18:07:37
Nit: make this const.
Hongbo Min
2013/05/16 14:47:59
Done.
| |
288 void CancelLongPressGesture() { has_valid_long_press_gesture_ = false; } | |
289 | |
287 protected: | 290 protected: |
288 friend class RenderWidgetHostView; | 291 friend class RenderWidgetHostView; |
289 | 292 |
290 // Should construct only via RenderWidgetHostView::CreateViewForWidget. | 293 // Should construct only via RenderWidgetHostView::CreateViewForWidget. |
291 // | 294 // |
292 // The view will associate itself with the given widget. | 295 // The view will associate itself with the given widget. |
293 explicit RenderWidgetHostViewWin(RenderWidgetHost* widget); | 296 explicit RenderWidgetHostViewWin(RenderWidgetHost* widget); |
294 | 297 |
295 // Windows Message Handlers | 298 // Windows Message Handlers |
296 LRESULT OnCreate(CREATESTRUCT* create_struct); | 299 LRESULT OnCreate(CREATESTRUCT* create_struct); |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
587 scoped_ptr<SkRegion> transparent_region_; | 590 scoped_ptr<SkRegion> transparent_region_; |
588 | 591 |
589 // Are touch events currently enabled? | 592 // Are touch events currently enabled? |
590 bool touch_events_enabled_; | 593 bool touch_events_enabled_; |
591 | 594 |
592 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; | 595 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; |
593 | 596 |
594 // The OS-provided default IAccessible instance for our hwnd. | 597 // The OS-provided default IAccessible instance for our hwnd. |
595 base::win::ScopedComPtr<IAccessible> window_iaccessible_; | 598 base::win::ScopedComPtr<IAccessible> window_iaccessible_; |
596 | 599 |
600 // True if the long press gesture is forwarded to renderer process and still | |
601 // in a valid status, e.g. no mouse up event happens. | |
602 bool has_valid_long_press_gesture_; | |
dcheng
2013/04/15 18:07:37
Perhaps just call this "in_long_press_gesture".
Hongbo Min
2013/05/16 14:47:59
Done.
| |
603 | |
597 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 604 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
598 }; | 605 }; |
599 | 606 |
600 } // namespace content | 607 } // namespace content |
601 | 608 |
602 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 609 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
OLD | NEW |