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

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

Issue 2485693003: Drag-and-drop: DragEnter, DragOver, DragLeave, DragDrop (Closed)
Patch Set: Rebased. More fixes. 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 void setTextDirection(WebTextDirection) override; 111 void setTextDirection(WebTextDirection) override;
112 bool isAcceleratedCompositingActive() const override; 112 bool isAcceleratedCompositingActive() const override;
113 void willCloseLayerTreeView() override; 113 void willCloseLayerTreeView() override;
114 void didAcquirePointerLock() override; 114 void didAcquirePointerLock() override;
115 void didNotAcquirePointerLock() override; 115 void didNotAcquirePointerLock() override;
116 void didLosePointerLock() override; 116 void didLosePointerLock() override;
117 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override; 117 bool getCompositionCharacterBounds(WebVector<WebRect>& bounds) override;
118 void applyReplacementRange(const WebRange&) override; 118 void applyReplacementRange(const WebRange&) override;
119 119
120 // WebFrameWidget implementation. 120 // WebFrameWidget implementation.
121 WebLocalFrameImpl* localRoot() override { return m_localRoot; } 121 WebLocalFrameImpl* localRoot() const override { return m_localRoot; }
122 void setVisibilityState(WebPageVisibilityState) override; 122 void setVisibilityState(WebPageVisibilityState) override;
123 bool isTransparent() const override; 123 bool isTransparent() const override;
124 void setIsTransparent(bool) override; 124 void setIsTransparent(bool) override;
125 void setBaseBackgroundColor(WebColor) override; 125 void setBaseBackgroundColor(WebColor) override;
126 WebInputMethodControllerImpl* getActiveWebInputMethodController() 126 WebInputMethodControllerImpl* getActiveWebInputMethodController()
127 const override; 127 const override;
128 128
129 Frame* focusedCoreFrame() const; 129 Frame* focusedCoreFrame() const;
130 130
131 // Returns the currently focused Element or null if no element has focus. 131 // Returns the currently focused Element or null if no element has focus.
(...skipping 12 matching lines...) Expand all
144 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*) override; 144 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*) override;
145 HitTestResult coreHitTestResultAt(const WebPoint&) override; 145 HitTestResult coreHitTestResultAt(const WebPoint&) override;
146 146
147 // Exposed for the purpose of overriding device metrics. 147 // Exposed for the purpose of overriding device metrics.
148 void sendResizeEventAndRepaint(); 148 void sendResizeEventAndRepaint();
149 149
150 void updateMainFrameLayoutSize(); 150 void updateMainFrameLayoutSize();
151 151
152 void setIgnoreInputEvents(bool newValue); 152 void setIgnoreInputEvents(bool newValue);
153 153
154 // Returns the page object associated with this widget. This may be null when
155 // the page is shutting down, but will be valid at all other times.
156 Page* page() const { return view()->page(); }
157
158 // Event related methods: 154 // Event related methods:
159 void mouseContextMenu(const WebMouseEvent&); 155 void mouseContextMenu(const WebMouseEvent&);
160 156
161 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } 157 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; }
162 GraphicsLayer* rootGraphicsLayer() const { return m_rootGraphicsLayer; }; 158 GraphicsLayer* rootGraphicsLayer() const { return m_rootGraphicsLayer; };
163 159
164 Color baseBackgroundColor() const { return m_baseBackgroundColor; } 160 Color baseBackgroundColor() const { return m_baseBackgroundColor; }
165 161
166 DECLARE_TRACE(); 162 DECLARE_TRACE();
167 163
(...skipping 15 matching lines...) Expand all
183 // PageWidgetEventHandler functions 179 // PageWidgetEventHandler functions
184 void handleMouseLeave(LocalFrame&, const WebMouseEvent&) override; 180 void handleMouseLeave(LocalFrame&, const WebMouseEvent&) override;
185 void handleMouseDown(LocalFrame&, const WebMouseEvent&) override; 181 void handleMouseDown(LocalFrame&, const WebMouseEvent&) override;
186 void handleMouseUp(LocalFrame&, const WebMouseEvent&) override; 182 void handleMouseUp(LocalFrame&, const WebMouseEvent&) override;
187 WebInputEventResult handleMouseWheel(LocalFrame&, 183 WebInputEventResult handleMouseWheel(LocalFrame&,
188 const WebMouseWheelEvent&) override; 184 const WebMouseWheelEvent&) override;
189 WebInputEventResult handleGestureEvent(const WebGestureEvent&) override; 185 WebInputEventResult handleGestureEvent(const WebGestureEvent&) override;
190 WebInputEventResult handleKeyEvent(const WebKeyboardEvent&) override; 186 WebInputEventResult handleKeyEvent(const WebKeyboardEvent&) override;
191 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override; 187 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override;
192 188
193 WebViewImpl* view() const { return m_localRoot->viewImpl(); }
194 InspectorOverlay* inspectorOverlay(); 189 InspectorOverlay* inspectorOverlay();
195 190
196 // This method returns the focused frame belonging to this WebWidget, that 191 // This method returns the focused frame belonging to this WebWidget, that
197 // is, a focused frame with the same local root as the one corresponding 192 // is, a focused frame with the same local root as the one corresponding
198 // to this widget. It will return nullptr if no frame is focused or, the 193 // to this widget. It will return nullptr if no frame is focused or, the
199 // focused frame has a different local root. 194 // focused frame has a different local root.
200 LocalFrame* focusedLocalFrameInWidget() const; 195 LocalFrame* focusedLocalFrameInWidget() const;
201 196
202 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*) const; 197 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*) const;
203 198
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 241
247 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, 242 DEFINE_TYPE_CASTS(WebFrameWidgetImpl,
248 WebFrameWidgetBase, 243 WebFrameWidgetBase,
249 widget, 244 widget,
250 widget->forSubframe(), 245 widget->forSubframe(),
251 widget.forSubframe()); 246 widget.forSubframe());
252 247
253 } // namespace blink 248 } // namespace blink
254 249
255 #endif 250 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetBase.cpp ('k') | third_party/WebKit/Source/web/WebViewFrameWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698