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

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

Issue 2609093002: Revert of Use consistent types for ICC profiles (Closed)
Patch Set: Created 3 years, 11 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
« 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 void OnShowHostContextMenu(ContextMenuParams* params); 377 void OnShowHostContextMenu(ContextMenuParams* params);
378 378
379 // Checks if the composition range or composition character bounds have been 379 // Checks if the composition range or composition character bounds have been
380 // changed. If they are changed, the new value will be sent to the browser 380 // changed. If they are changed, the new value will be sent to the browser
381 // process. This method does nothing when the browser process is not able to 381 // process. This method does nothing when the browser process is not able to
382 // handle composition range and composition character bounds. 382 // handle composition range and composition character bounds.
383 // If immediate_request is true, render sends the latest composition info to 383 // If immediate_request is true, render sends the latest composition info to
384 // the browser even if the composition info is not changed. 384 // the browser even if the composition info is not changed.
385 void UpdateCompositionInfo(bool immediate_request); 385 void UpdateCompositionInfo(bool immediate_request);
386 386
387 // Change the device color space while running a layout test. 387 // Change the device ICC color profile while running a layout test.
388 void SetDeviceColorSpaceForTesting(const gfx::ColorSpace& color_space); 388 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile);
389 389
390 // Called when the Widget has changed size as a result of an auto-resize. 390 // Called when the Widget has changed size as a result of an auto-resize.
391 void DidAutoResize(const gfx::Size& new_size); 391 void DidAutoResize(const gfx::Size& new_size);
392 392
393 // Indicates whether this widget has focus. 393 // Indicates whether this widget has focus.
394 bool has_focus() const { return has_focus_; } 394 bool has_focus() const { return has_focus_; }
395 395
396 MouseLockDispatcher* mouse_lock_dispatcher() { 396 MouseLockDispatcher* mouse_lock_dispatcher() {
397 return mouse_lock_dispatcher_.get(); 397 return mouse_lock_dispatcher_.get();
398 } 398 }
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 // Called by the browser process to update the cursor and composition 537 // Called by the browser process to update the cursor and composition
538 // information. 538 // information.
539 void OnRequestCompositionUpdate(bool immediate_request, bool monitor_request); 539 void OnRequestCompositionUpdate(bool immediate_request, bool monitor_request);
540 540
541 // Notify the compositor about a change in viewport size. This should be 541 // Notify the compositor about a change in viewport size. This should be
542 // used only with auto resize mode WebWidgets, as normal WebWidgets should 542 // used only with auto resize mode WebWidgets, as normal WebWidgets should
543 // go through OnResize. 543 // go through OnResize.
544 void AutoResizeCompositor(); 544 void AutoResizeCompositor();
545 545
546 virtual void OnSetDeviceScaleFactor(float device_scale_factor); 546 virtual void OnSetDeviceScaleFactor(float device_scale_factor);
547 bool SetDeviceColorProfile(const std::vector<char>& color_profile);
547 548
548 virtual void OnOrientationChange(); 549 virtual void OnOrientationChange();
549 550
550 // Override points to notify derived classes that a paint has happened. 551 // Override points to notify derived classes that a paint has happened.
551 // DidInitiatePaint happens when that has completed, and subsequent rendering 552 // DidInitiatePaint happens when that has completed, and subsequent rendering
552 // won't affect the painted content. 553 // won't affect the painted content.
553 virtual void DidInitiatePaint() {} 554 virtual void DidInitiatePaint() {}
554 555
555 virtual GURL GetURLForGraphicsContext3D(); 556 virtual GURL GetURLForGraphicsContext3D();
556 557
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 // The time spent in input handlers this frame. Used to throttle input acks. 735 // The time spent in input handlers this frame. Used to throttle input acks.
735 base::TimeDelta total_input_handling_time_this_frame_; 736 base::TimeDelta total_input_handling_time_this_frame_;
736 737
737 // Properties of the screen hosting this RenderWidget instance. 738 // Properties of the screen hosting this RenderWidget instance.
738 ScreenInfo screen_info_; 739 ScreenInfo screen_info_;
739 740
740 // The device scale factor. This value is computed from the DPI entries in 741 // The device scale factor. This value is computed from the DPI entries in
741 // |screen_info_| on some platforms, and defaults to 1 on other platforms. 742 // |screen_info_| on some platforms, and defaults to 1 on other platforms.
742 float device_scale_factor_; 743 float device_scale_factor_;
743 744
745 // The device color profile on supported platforms.
746 std::vector<char> device_color_profile_;
747
744 // State associated with synthetic gestures. Synthetic gestures are processed 748 // State associated with synthetic gestures. Synthetic gestures are processed
745 // in-order, so a queue is sufficient to identify the correct state for a 749 // in-order, so a queue is sufficient to identify the correct state for a
746 // completed gesture. 750 // completed gesture.
747 std::queue<SyntheticGestureCompletionCallback> 751 std::queue<SyntheticGestureCompletionCallback>
748 pending_synthetic_gesture_callbacks_; 752 pending_synthetic_gesture_callbacks_;
749 753
750 // True if the IME requests updated composition info. 754 // True if the IME requests updated composition info.
751 bool monitor_composition_info_; 755 bool monitor_composition_info_;
752 756
753 std::unique_ptr<RenderWidgetScreenMetricsEmulator> screen_metrics_emulator_; 757 std::unique_ptr<RenderWidgetScreenMetricsEmulator> screen_metrics_emulator_;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 // being handled. If the current event results in starting a drag/drop 828 // being handled. If the current event results in starting a drag/drop
825 // session, this info is sent to the browser along with other drag/drop info. 829 // session, this info is sent to the browser along with other drag/drop info.
826 DragEventSourceInfo possible_drag_event_info_; 830 DragEventSourceInfo possible_drag_event_info_;
827 831
828 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 832 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
829 }; 833 };
830 834
831 } // namespace content 835 } // namespace content
832 836
833 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 837 #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