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

Side by Side Diff: content/renderer/render_widget.h

Issue 2832093003: Implement screen orientation for out-of-process iframes. (Closed)
Patch Set: fix dcheck Created 3 years, 7 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_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 void OnRequestCompositionUpdates(bool immediate_request, 566 void OnRequestCompositionUpdates(bool immediate_request,
567 bool monitor_updates); 567 bool monitor_updates);
568 568
569 // Notify the compositor about a change in viewport size. This should be 569 // Notify the compositor about a change in viewport size. This should be
570 // used only with auto resize mode WebWidgets, as normal WebWidgets should 570 // used only with auto resize mode WebWidgets, as normal WebWidgets should
571 // go through OnResize. 571 // go through OnResize.
572 void AutoResizeCompositor(); 572 void AutoResizeCompositor();
573 573
574 virtual void OnSetDeviceScaleFactor(float device_scale_factor); 574 virtual void OnSetDeviceScaleFactor(float device_scale_factor);
575 575
576 virtual void OnOrientationChange(); 576 void OnOrientationChange();
577 577
578 // Override points to notify derived classes that a paint has happened. 578 // Override points to notify derived classes that a paint has happened.
579 // DidInitiatePaint happens when that has completed, and subsequent rendering 579 // DidInitiatePaint happens when that has completed, and subsequent rendering
580 // won't affect the painted content. 580 // won't affect the painted content.
581 virtual void DidInitiatePaint() {} 581 virtual void DidInitiatePaint() {}
582 582
583 virtual GURL GetURLForGraphicsContext3D(); 583 virtual GURL GetURLForGraphicsContext3D();
584 584
585 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should 585 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should
586 // use this method so that we can properly inform the RenderThread of our 586 // use this method so that we can properly inform the RenderThread of our
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 scoped_refptr<MainThreadEventQueue> input_event_queue_; 882 scoped_refptr<MainThreadEventQueue> input_event_queue_;
883 883
884 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; 884 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
885 885
886 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 886 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
887 }; 887 };
888 888
889 } // namespace content 889 } // namespace content
890 890
891 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 891 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698