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

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

Issue 2605743002: Use consistent types for ICC profiles (Closed)
Patch Set: No export for static lib Created 3 years, 12 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 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 ICC color profile while running a layout test. 387 // Change the device color space while running a layout test.
388 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile); 388 void SetDeviceColorSpaceForTesting(const gfx::ColorSpace& color_space);
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);
548 547
549 virtual void OnOrientationChange(); 548 virtual void OnOrientationChange();
550 549
551 // Override points to notify derived classes that a paint has happened. 550 // Override points to notify derived classes that a paint has happened.
552 // DidInitiatePaint happens when that has completed, and subsequent rendering 551 // DidInitiatePaint happens when that has completed, and subsequent rendering
553 // won't affect the painted content. 552 // won't affect the painted content.
554 virtual void DidInitiatePaint() {} 553 virtual void DidInitiatePaint() {}
555 554
556 virtual GURL GetURLForGraphicsContext3D(); 555 virtual GURL GetURLForGraphicsContext3D();
557 556
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 // The time spent in input handlers this frame. Used to throttle input acks. 734 // The time spent in input handlers this frame. Used to throttle input acks.
736 base::TimeDelta total_input_handling_time_this_frame_; 735 base::TimeDelta total_input_handling_time_this_frame_;
737 736
738 // Properties of the screen hosting this RenderWidget instance. 737 // Properties of the screen hosting this RenderWidget instance.
739 ScreenInfo screen_info_; 738 ScreenInfo screen_info_;
740 739
741 // The device scale factor. This value is computed from the DPI entries in 740 // The device scale factor. This value is computed from the DPI entries in
742 // |screen_info_| on some platforms, and defaults to 1 on other platforms. 741 // |screen_info_| on some platforms, and defaults to 1 on other platforms.
743 float device_scale_factor_; 742 float device_scale_factor_;
744 743
745 // The device color profile on supported platforms.
746 std::vector<char> device_color_profile_;
747
748 // State associated with synthetic gestures. Synthetic gestures are processed 744 // State associated with synthetic gestures. Synthetic gestures are processed
749 // in-order, so a queue is sufficient to identify the correct state for a 745 // in-order, so a queue is sufficient to identify the correct state for a
750 // completed gesture. 746 // completed gesture.
751 std::queue<SyntheticGestureCompletionCallback> 747 std::queue<SyntheticGestureCompletionCallback>
752 pending_synthetic_gesture_callbacks_; 748 pending_synthetic_gesture_callbacks_;
753 749
754 // True if the IME requests updated composition info. 750 // True if the IME requests updated composition info.
755 bool monitor_composition_info_; 751 bool monitor_composition_info_;
756 752
757 std::unique_ptr<RenderWidgetScreenMetricsEmulator> screen_metrics_emulator_; 753 std::unique_ptr<RenderWidgetScreenMetricsEmulator> screen_metrics_emulator_;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 // being handled. If the current event results in starting a drag/drop 824 // being handled. If the current event results in starting a drag/drop
829 // session, this info is sent to the browser along with other drag/drop info. 825 // session, this info is sent to the browser along with other drag/drop info.
830 DragEventSourceInfo possible_drag_event_info_; 826 DragEventSourceInfo possible_drag_event_info_;
831 827
832 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 828 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
833 }; 829 };
834 830
835 } // namespace content 831 } // namespace content
836 832
837 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 833 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698