Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_win.h

Issue 14294003: Touch-initiated drag-out to download file but fails. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to trunk Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE; 286 virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE;
287 287
288 bool in_long_press_gesture() const { return in_long_press_gesture_; }
289 void CancelLongPressGesture() { in_long_press_gesture_ = false; }
290
288 protected: 291 protected:
289 friend class RenderWidgetHostView; 292 friend class RenderWidgetHostView;
290 293
291 // Should construct only via RenderWidgetHostView::CreateViewForWidget. 294 // Should construct only via RenderWidgetHostView::CreateViewForWidget.
292 // 295 //
293 // The view will associate itself with the given widget. 296 // The view will associate itself with the given widget.
294 explicit RenderWidgetHostViewWin(RenderWidgetHost* widget); 297 explicit RenderWidgetHostViewWin(RenderWidgetHost* widget);
295 298
296 // Windows Message Handlers 299 // Windows Message Handlers
297 LRESULT OnCreate(CREATESTRUCT* create_struct); 300 LRESULT OnCreate(CREATESTRUCT* create_struct);
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 scoped_ptr<SkRegion> transparent_region_; 591 scoped_ptr<SkRegion> transparent_region_;
589 592
590 // Are touch events currently enabled? 593 // Are touch events currently enabled?
591 bool touch_events_enabled_; 594 bool touch_events_enabled_;
592 595
593 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; 596 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_;
594 597
595 // The OS-provided default IAccessible instance for our hwnd. 598 // The OS-provided default IAccessible instance for our hwnd.
596 base::win::ScopedComPtr<IAccessible> window_iaccessible_; 599 base::win::ScopedComPtr<IAccessible> window_iaccessible_;
597 600
601 // True if the long press gesture is forwarded to renderer process and still
602 // in a valid status, e.g. no mouse up event happens.
603 bool in_long_press_gesture_;
604
598 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); 605 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin);
599 }; 606 };
600 607
601 } // namespace content 608 } // namespace content
602 609
603 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 610 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698