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

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

Issue 1605143003: [UseZoomForDSF] Support drag&drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: guest view support Created 4 years, 10 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 // Expose increment/decrement of the in-flight event count, so 500 // Expose increment/decrement of the in-flight event count, so
501 // RenderViewHostImpl can account for in-flight beforeunload/unload events. 501 // RenderViewHostImpl can account for in-flight beforeunload/unload events.
502 int increment_in_flight_event_count() { return ++in_flight_event_count_; } 502 int increment_in_flight_event_count() { return ++in_flight_event_count_; }
503 int decrement_in_flight_event_count() { 503 int decrement_in_flight_event_count() {
504 DCHECK_GT(in_flight_event_count_, 0); 504 DCHECK_GT(in_flight_event_count_, 0);
505 return --in_flight_event_count_; 505 return --in_flight_event_count_;
506 } 506 }
507 507
508 bool renderer_initialized() const { return renderer_initialized_; } 508 bool renderer_initialized() const { return renderer_initialized_; }
509 509
510 bool scale_input_to_viewport() const { return scale_input_to_viewport_; }
510 void set_scale_input_to_viewport(bool scale_input_to_viewport) { 511 void set_scale_input_to_viewport(bool scale_input_to_viewport) {
511 scale_input_to_viewport_ = scale_input_to_viewport; 512 scale_input_to_viewport_ = scale_input_to_viewport;
512 } 513 }
513 514
514 protected: 515 protected:
515 // Retrieves an id the renderer can use to refer to its view. 516 // Retrieves an id the renderer can use to refer to its view.
516 // This is used for various IPC messages, including plugins. 517 // This is used for various IPC messages, including plugins.
517 gfx::NativeViewId GetNativeViewId() const; 518 gfx::NativeViewId GetNativeViewId() const;
518 519
519 // --------------------------------------------------------------------------- 520 // ---------------------------------------------------------------------------
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_; 836 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_;
836 837
837 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 838 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
838 839
839 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 840 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
840 }; 841 };
841 842
842 } // namespace content 843 } // namespace content
843 844
844 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 845 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698