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

Side by Side Diff: third_party/WebKit/Source/web/WebPagePopupImpl.h

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Creating CoalescedWebInputEvent Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 WebInputEventResult handleKeyEvent(const WebKeyboardEvent&) override; 74 WebInputEventResult handleKeyEvent(const WebKeyboardEvent&) override;
75 75
76 private: 76 private:
77 // WebWidget functions 77 // WebWidget functions
78 void beginFrame(double lastFrameTimeMonotonic) override; 78 void beginFrame(double lastFrameTimeMonotonic) override;
79 void updateAllLifecyclePhases() override; 79 void updateAllLifecyclePhases() override;
80 void willCloseLayerTreeView() override; 80 void willCloseLayerTreeView() override;
81 void paint(WebCanvas*, const WebRect&) override; 81 void paint(WebCanvas*, const WebRect&) override;
82 void resize(const WebSize&) override; 82 void resize(const WebSize&) override;
83 void close() override; 83 void close() override;
84 WebInputEventResult handleInputEvent(const WebInputEvent&) override; 84 WebInputEventResult handleInputEvent(const CoalescedWebInputEvent&) override;
85 void setFocus(bool) override; 85 void setFocus(bool) override;
86 bool isPagePopup() const override { return true; } 86 bool isPagePopup() const override { return true; }
87 bool isAcceleratedCompositingActive() const override { 87 bool isAcceleratedCompositingActive() const override {
88 return m_isAcceleratedCompositingActive; 88 return m_isAcceleratedCompositingActive;
89 } 89 }
90 90
91 // PageWidgetEventHandler functions 91 // PageWidgetEventHandler functions
92 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override; 92 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override;
93 WebInputEventResult handleGestureEvent(const WebGestureEvent&) override; 93 WebInputEventResult handleGestureEvent(const WebGestureEvent&) override;
94 void handleMouseDown(LocalFrame& mainFrame, const WebMouseEvent&) override; 94 void handleMouseDown(LocalFrame& mainFrame, const WebMouseEvent&) override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 WebWidget, 129 WebWidget,
130 widget, 130 widget,
131 widget->isPagePopup(), 131 widget->isPagePopup(),
132 widget.isPagePopup()); 132 widget.isPagePopup());
133 // WebPagePopupImpl is the only implementation of PagePopup, so no 133 // WebPagePopupImpl is the only implementation of PagePopup, so no
134 // further checking required. 134 // further checking required.
135 DEFINE_TYPE_CASTS(WebPagePopupImpl, PagePopup, popup, true, true); 135 DEFINE_TYPE_CASTS(WebPagePopupImpl, PagePopup, popup, true, true);
136 136
137 } // namespace blink 137 } // namespace blink
138 #endif // WebPagePopupImpl_h 138 #endif // WebPagePopupImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698