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

Side by Side Diff: views/widget/widget.h

Issue 8364039: Initial views touchui GestureRecognizer support (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added ForwardGestureEvents()in RootView and incorporated comments Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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 VIEWS_WIDGET_WIDGET_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_H_
6 #define VIEWS_WIDGET_WIDGET_H_ 6 #define VIEWS_WIDGET_WIDGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <stack> 9 #include <stack>
10 10
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 virtual void OnNativeWidgetEndUserBoundsChange() OVERRIDE; 593 virtual void OnNativeWidgetEndUserBoundsChange() OVERRIDE;
594 virtual bool HasFocusManager() const OVERRIDE; 594 virtual bool HasFocusManager() const OVERRIDE;
595 virtual bool OnNativeWidgetPaintAccelerated( 595 virtual bool OnNativeWidgetPaintAccelerated(
596 const gfx::Rect& dirty_region) OVERRIDE; 596 const gfx::Rect& dirty_region) OVERRIDE;
597 virtual void OnNativeWidgetPaint(gfx::Canvas* canvas) OVERRIDE; 597 virtual void OnNativeWidgetPaint(gfx::Canvas* canvas) OVERRIDE;
598 virtual int GetNonClientComponent(const gfx::Point& point) OVERRIDE; 598 virtual int GetNonClientComponent(const gfx::Point& point) OVERRIDE;
599 virtual bool OnKeyEvent(const KeyEvent& event) OVERRIDE; 599 virtual bool OnKeyEvent(const KeyEvent& event) OVERRIDE;
600 virtual bool OnMouseEvent(const MouseEvent& event) OVERRIDE; 600 virtual bool OnMouseEvent(const MouseEvent& event) OVERRIDE;
601 virtual void OnMouseCaptureLost() OVERRIDE; 601 virtual void OnMouseCaptureLost() OVERRIDE;
602 virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) OVERRIDE; 602 virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) OVERRIDE;
603 virtual bool OnGestureEvent(const GestureEvent& event) OVERRIDE;
603 virtual bool ExecuteCommand(int command_id) OVERRIDE; 604 virtual bool ExecuteCommand(int command_id) OVERRIDE;
604 virtual InputMethod* GetInputMethodDirect() OVERRIDE; 605 virtual InputMethod* GetInputMethodDirect() OVERRIDE;
605 virtual Widget* AsWidget() OVERRIDE; 606 virtual Widget* AsWidget() OVERRIDE;
606 virtual const Widget* AsWidget() const OVERRIDE; 607 virtual const Widget* AsWidget() const OVERRIDE;
607 608
608 // Overridden from FocusTraversable: 609 // Overridden from FocusTraversable:
609 virtual FocusSearch* GetFocusSearch() OVERRIDE; 610 virtual FocusSearch* GetFocusSearch() OVERRIDE;
610 virtual FocusTraversable* GetFocusTraversableParent() OVERRIDE; 611 virtual FocusTraversable* GetFocusTraversableParent() OVERRIDE;
611 virtual View* GetFocusTraversableParentView() OVERRIDE; 612 virtual View* GetFocusTraversableParentView() OVERRIDE;
612 613
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 // duplicate move events even though the mouse hasn't moved. 739 // duplicate move events even though the mouse hasn't moved.
739 bool last_mouse_event_was_move_; 740 bool last_mouse_event_was_move_;
740 gfx::Point last_mouse_event_position_; 741 gfx::Point last_mouse_event_position_;
741 742
742 DISALLOW_COPY_AND_ASSIGN(Widget); 743 DISALLOW_COPY_AND_ASSIGN(Widget);
743 }; 744 };
744 745
745 } // namespace views 746 } // namespace views
746 747
747 #endif // VIEWS_WIDGET_WIDGET_H_ 748 #endif // VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698