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

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

Issue 316913002: Plumb testRunner dynamic color profile test support into RenderWidget (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 // Called by the browser process for every required IME acknowledgement. 391 // Called by the browser process for every required IME acknowledgement.
392 void OnImeEventAck(); 392 void OnImeEventAck();
393 #endif 393 #endif
394 394
395 // Notify the compositor about a change in viewport size. This should be 395 // Notify the compositor about a change in viewport size. This should be
396 // used only with auto resize mode WebWidgets, as normal WebWidgets should 396 // used only with auto resize mode WebWidgets, as normal WebWidgets should
397 // go through OnResize. 397 // go through OnResize.
398 void AutoResizeCompositor(); 398 void AutoResizeCompositor();
399 399
400 virtual void SetDeviceScaleFactor(float device_scale_factor); 400 virtual void SetDeviceScaleFactor(float device_scale_factor);
401 virtual bool SetDeviceColorProfile(const std::vector<char>& color_profile);
401 402
402 virtual void OnOrientationChange(); 403 virtual void OnOrientationChange();
403 404
404 // Override points to notify derived classes that a paint has happened. 405 // Override points to notify derived classes that a paint has happened.
405 // DidInitiatePaint happens when that has completed, and subsequent rendering 406 // DidInitiatePaint happens when that has completed, and subsequent rendering
406 // won't affect the painted content. DidFlushPaint happens once we've received 407 // won't affect the painted content. DidFlushPaint happens once we've received
407 // the ACK that the screen has been updated. For a given paint operation, 408 // the ACK that the screen has been updated. For a given paint operation,
408 // these overrides will always be called in the order DidInitiatePaint, 409 // these overrides will always be called in the order DidInitiatePaint,
409 // DidFlushPaint. 410 // DidFlushPaint.
410 virtual void DidInitiatePaint() {} 411 virtual void DidInitiatePaint() {}
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 // Indicates if the next sequence of Char events should be suppressed or not. 656 // Indicates if the next sequence of Char events should be suppressed or not.
656 bool suppress_next_char_events_; 657 bool suppress_next_char_events_;
657 658
658 // Properties of the screen hosting this RenderWidget instance. 659 // Properties of the screen hosting this RenderWidget instance.
659 blink::WebScreenInfo screen_info_; 660 blink::WebScreenInfo screen_info_;
660 661
661 // The device scale factor. This value is computed from the DPI entries in 662 // The device scale factor. This value is computed from the DPI entries in
662 // |screen_info_| on some platforms, and defaults to 1 on other platforms. 663 // |screen_info_| on some platforms, and defaults to 1 on other platforms.
663 float device_scale_factor_; 664 float device_scale_factor_;
664 665
666 // The device color profile on supported platforms.
667 std::vector<char> device_color_profile_;
668
665 // State associated with synthetic gestures. Synthetic gestures are processed 669 // State associated with synthetic gestures. Synthetic gestures are processed
666 // in-order, so a queue is sufficient to identify the correct state for a 670 // in-order, so a queue is sufficient to identify the correct state for a
667 // completed gesture. 671 // completed gesture.
668 std::queue<SyntheticGestureCompletionCallback> 672 std::queue<SyntheticGestureCompletionCallback>
669 pending_synthetic_gesture_callbacks_; 673 pending_synthetic_gesture_callbacks_;
670 674
671 // Specified whether the compositor will run in its own thread. 675 // Specified whether the compositor will run in its own thread.
672 bool is_threaded_compositing_enabled_; 676 bool is_threaded_compositing_enabled_;
673 677
674 const ui::LatencyInfo* current_event_latency_info_; 678 const ui::LatencyInfo* current_event_latency_info_;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 725
722 ui::MenuSourceType context_menu_source_type_; 726 ui::MenuSourceType context_menu_source_type_;
723 gfx::Point touch_editing_context_menu_location_; 727 gfx::Point touch_editing_context_menu_location_;
724 728
725 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 729 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
726 }; 730 };
727 731
728 } // namespace content 732 } // namespace content
729 733
730 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 734 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698