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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_guest.h

Issue 1199963011: Force new surface on BrowserPluginGuest reattach. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename & move ClearCompositorSurfaceIfNecessary(). Created 5 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 // Overridden from ui::GestureEventHelper. 137 // Overridden from ui::GestureEventHelper.
138 bool CanDispatchToConsumer(ui::GestureConsumer* consumer) override; 138 bool CanDispatchToConsumer(ui::GestureConsumer* consumer) override;
139 void DispatchGestureEvent(ui::GestureEvent* event) override; 139 void DispatchGestureEvent(ui::GestureEvent* event) override;
140 void DispatchCancelTouchEvent(ui::TouchEvent* event) override; 140 void DispatchCancelTouchEvent(ui::TouchEvent* event) override;
141 141
142 protected: 142 protected:
143 friend class RenderWidgetHostView; 143 friend class RenderWidgetHostView;
144 144
145 private: 145 private:
146
kenrb 2015/06/26 17:18:24 Not necessary.
wjmaclean 2015/06/27 16:30:58 Done.
146 // Destroys this view without calling |Destroy| on |platform_view_|. 147 // Destroys this view without calling |Destroy| on |platform_view_|.
147 void DestroyGuestView(); 148 void DestroyGuestView();
148 149
149 // Builds and forwards a WebKitGestureEvent to the renderer. 150 // Builds and forwards a WebKitGestureEvent to the renderer.
150 bool ForwardGestureEventToRenderer(ui::GestureEvent* gesture); 151 bool ForwardGestureEventToRenderer(ui::GestureEvent* gesture);
151 152
152 // Process all of the given gestures (passes them on to renderer) 153 // Process all of the given gestures (passes them on to renderer)
153 void ProcessGestures(ui::GestureRecognizer::Gestures* gestures); 154 void ProcessGestures(ui::GestureRecognizer::Gestures* gestures);
154 155
155 RenderWidgetHostViewBase* GetOwnerRenderWidgetHostView() const; 156 RenderWidgetHostViewBase* GetOwnerRenderWidgetHostView() const;
(...skipping 13 matching lines...) Expand all
169 base::WeakPtr<RenderWidgetHostViewBase> platform_view_; 170 base::WeakPtr<RenderWidgetHostViewBase> platform_view_;
170 #if defined(USE_AURA) 171 #if defined(USE_AURA)
171 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; 172 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_;
172 #endif 173 #endif
173 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); 174 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest);
174 }; 175 };
175 176
176 } // namespace content 177 } // namespace content
177 178
178 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ 179 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698