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

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: Clean up BrowserPluginHostTest, remove unused var, use constants for str. 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 <string> 10 #include <string>
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 #endif 389 #endif
390 390
391 // Signals that the compositing surface was updated, e.g. after a lost context 391 // Signals that the compositing surface was updated, e.g. after a lost context
392 // event. 392 // event.
393 void CompositingSurfaceUpdated(); 393 void CompositingSurfaceUpdated();
394 394
395 void set_allow_privileged_mouse_lock(bool allow) { 395 void set_allow_privileged_mouse_lock(bool allow) {
396 allow_privileged_mouse_lock_ = allow; 396 allow_privileged_mouse_lock_ = allow;
397 } 397 }
398 398
399 // Resets state variables related to tracking pending size and painting.
400 //
401 // We need to reset these flags when we want to repaint the contents of
402 // browser plugin in this RWH. Resetting these flags will ensure we ignore
403 // any previous pending acks that are not relevant upon repaint.
404 void ResetSizeAndRepaintPendingFlags();
405
399 protected: 406 protected:
400 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; 407 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE;
401 408
402 // Internal implementation of the public Forward*Event() methods. 409 // Internal implementation of the public Forward*Event() methods.
403 void ForwardInputEvent(const WebKit::WebInputEvent& input_event, 410 void ForwardInputEvent(const WebKit::WebInputEvent& input_event,
404 int event_size, bool is_keyboard_shortcut); 411 int event_size, bool is_keyboard_shortcut);
405 412
406 // Called when we receive a notification indicating that the renderer 413 // Called when we receive a notification indicating that the renderer
407 // process has gone. This will reset our state so that our state will be 414 // process has gone. This will reset our state so that our state will be
408 // consistent if a new renderer is created. 415 // consistent if a new renderer is created.
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 SmoothScrollGestureMap active_smooth_scroll_gestures_; 797 SmoothScrollGestureMap active_smooth_scroll_gestures_;
791 798
792 scoped_ptr<GestureEventFilter> gesture_event_filter_; 799 scoped_ptr<GestureEventFilter> gesture_event_filter_;
793 800
794 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 801 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
795 }; 802 };
796 803
797 } // namespace content 804 } // namespace content
798 805
799 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 806 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698