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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 10868012: Browser Plugin: New Implementation (Browser Side) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master-trial-obrowser
Patch Set: Rework tests to use timeouts instead of waiting indefinitely, not store any Guest* in embedder. Created 8 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 401
402 void set_allow_privileged_mouse_lock(bool allow) { 402 void set_allow_privileged_mouse_lock(bool allow) {
403 allow_privileged_mouse_lock_ = allow; 403 allow_privileged_mouse_lock_ = allow;
404 } 404 }
405 405
406 #if defined(OS_ANDROID) 406 #if defined(OS_ANDROID)
407 virtual void AttachLayer(WebKit::WebLayer* layer) {} 407 virtual void AttachLayer(WebKit::WebLayer* layer) {}
408 virtual void RemoveLayer(WebKit::WebLayer* layer) {} 408 virtual void RemoveLayer(WebKit::WebLayer* layer) {}
409 #endif 409 #endif
410 410
411 // Resets state variables related to tracking pending size and painting.
412 //
413 // We need to reset these flags when we want to repaint the contents of
414 // browser plugin in this RWH. Resetting these flags will ensure we ignore
415 // any previous pending acks that are not relevant upon repaint.
416 void ResetSizeAndRepaintPendingFlags();
417
411 protected: 418 protected:
412 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; 419 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE;
413 420
414 // Internal implementation of the public Forward*Event() methods. 421 // Internal implementation of the public Forward*Event() methods.
415 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, 422 void ForwardInputEvent(const WebKit::WebInputEvent& input_event,
416 int event_size, bool is_keyboard_shortcut); 423 int event_size, bool is_keyboard_shortcut);
417 424
418 // Called when we receive a notification indicating that the renderer 425 // Called when we receive a notification indicating that the renderer
419 // process has gone. This will reset our state so that our state will be 426 // process has gone. This will reset our state so that our state will be
420 // consistent if a new renderer is created. 427 // consistent if a new renderer is created.
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 SmoothScrollGestureMap active_smooth_scroll_gestures_; 811 SmoothScrollGestureMap active_smooth_scroll_gestures_;
805 812
806 scoped_ptr<GestureEventFilter> gesture_event_filter_; 813 scoped_ptr<GestureEventFilter> gesture_event_filter_;
807 814
808 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 815 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
809 }; 816 };
810 817
811 } // namespace content 818 } // namespace content
812 819
813 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 820 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698