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

Side by Side Diff: content/browser/renderer_host/input/synthetic_gesture_target_base.h

Issue 256593013: Fail if key synthesized events are off screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/input/synthetic_gesture_target_base.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" 9 #include "content/browser/renderer_host/input/synthetic_gesture_target.h"
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 GetDefaultSyntheticGestureSourceType() const OVERRIDE; 49 GetDefaultSyntheticGestureSourceType() const OVERRIDE;
50 50
51 virtual base::TimeDelta PointerAssumedStoppedTime() const OVERRIDE; 51 virtual base::TimeDelta PointerAssumedStoppedTime() const OVERRIDE;
52 52
53 virtual int GetTouchSlopInDips() const OVERRIDE; 53 virtual int GetTouchSlopInDips() const OVERRIDE;
54 54
55 protected: 55 protected:
56 RenderWidgetHostImpl* render_widget_host() const { return host_; } 56 RenderWidgetHostImpl* render_widget_host() const { return host_; }
57 57
58 private: 58 private:
59 bool PointIsWithinContents(int x, int y) const;
60
59 RenderWidgetHostImpl* host_; 61 RenderWidgetHostImpl* host_;
60 62
61 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetBase); 63 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureTargetBase);
62 }; 64 };
63 65
64 } // namespace content 66 } // namespace content
65 67
66 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_ 68 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_TARGET_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/synthetic_gesture_target_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698