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

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

Issue 2085973004: Color: Remove ViewMsg_ColorProfile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't change profile yet Created 4 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
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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 void AddKeyPressEventCallback(const KeyPressEventCallback& callback) override; 173 void AddKeyPressEventCallback(const KeyPressEventCallback& callback) override;
174 void RemoveKeyPressEventCallback( 174 void RemoveKeyPressEventCallback(
175 const KeyPressEventCallback& callback) override; 175 const KeyPressEventCallback& callback) override;
176 void AddMouseEventCallback(const MouseEventCallback& callback) override; 176 void AddMouseEventCallback(const MouseEventCallback& callback) override;
177 void RemoveMouseEventCallback(const MouseEventCallback& callback) override; 177 void RemoveMouseEventCallback(const MouseEventCallback& callback) override;
178 void AddInputEventObserver( 178 void AddInputEventObserver(
179 RenderWidgetHost::InputEventObserver* observer) override; 179 RenderWidgetHost::InputEventObserver* observer) override;
180 void RemoveInputEventObserver( 180 void RemoveInputEventObserver(
181 RenderWidgetHost::InputEventObserver* observer) override; 181 RenderWidgetHost::InputEventObserver* observer) override;
182 void GetWebScreenInfo(blink::WebScreenInfo* result) override; 182 void GetWebScreenInfo(blink::WebScreenInfo* result) override;
183 bool GetScreenColorProfile(std::vector<char>* color_profile) override;
184 void HandleCompositorProto(const std::vector<uint8_t>& proto) override; 183 void HandleCompositorProto(const std::vector<uint8_t>& proto) override;
185 184
186 // Notification that the screen info has changed. 185 // Notification that the screen info has changed.
187 void NotifyScreenInfoChanged(); 186 void NotifyScreenInfoChanged();
188 187
189 // Forces redraw in the renderer and when the update reaches the browser 188 // Forces redraw in the renderer and when the update reaches the browser
190 // grabs snapshot from the compositor. Returns PNG-encoded snapshot. 189 // grabs snapshot from the compositor. Returns PNG-encoded snapshot.
191 using GetSnapshotFromBrowserCallback = 190 using GetSnapshotFromBrowserCallback =
192 base::Callback<void(const unsigned char*, size_t)>; 191 base::Callback<void(const unsigned char*, size_t)>;
193 void GetSnapshotFromBrowser(const GetSnapshotFromBrowserCallback& callback); 192 void GetSnapshotFromBrowser(const GetSnapshotFromBrowserCallback& callback);
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 553
555 // Called by |new_content_rendering_timeout_| if a renderer has loaded new 554 // Called by |new_content_rendering_timeout_| if a renderer has loaded new
556 // content but failed to produce a compositor frame in a defined time. 555 // content but failed to produce a compositor frame in a defined time.
557 void ClearDisplayedGraphics(); 556 void ClearDisplayedGraphics();
558 557
559 // Called if we know the renderer is responsive. When we currently think the 558 // Called if we know the renderer is responsive. When we currently think the
560 // renderer is unresponsive, this will clear that state and call 559 // renderer is unresponsive, this will clear that state and call
561 // NotifyRendererResponsive. 560 // NotifyRendererResponsive.
562 void RendererIsResponsive(); 561 void RendererIsResponsive();
563 562
564 // Routines used to send the RenderWidget its screen color profile.
565 void DispatchColorProfile();
566 void SendColorProfile();
567
568 // IPC message handlers 563 // IPC message handlers
569 void OnRenderProcessGone(int status, int error_code); 564 void OnRenderProcessGone(int status, int error_code);
570 void OnClose(); 565 void OnClose();
571 void OnUpdateScreenRectsAck(); 566 void OnUpdateScreenRectsAck();
572 void OnRequestMove(const gfx::Rect& pos); 567 void OnRequestMove(const gfx::Rect& pos);
573 void OnSetTooltipText(const base::string16& tooltip_text, 568 void OnSetTooltipText(const base::string16& tooltip_text,
574 blink::WebTextDirection text_direction_hint); 569 blink::WebTextDirection text_direction_hint);
575 bool OnSwapCompositorFrame(const IPC::Message& message); 570 bool OnSwapCompositorFrame(const IPC::Message& message);
576 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); 571 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
577 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); 572 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 // Indicates whether a page is hidden or not. It has to stay in sync with the 674 // Indicates whether a page is hidden or not. It has to stay in sync with the
680 // most recent call to process_->WidgetRestored() / WidgetHidden(). 675 // most recent call to process_->WidgetRestored() / WidgetHidden().
681 bool is_hidden_; 676 bool is_hidden_;
682 677
683 // Set if we are waiting for a repaint ack for the view. 678 // Set if we are waiting for a repaint ack for the view.
684 bool repaint_ack_pending_; 679 bool repaint_ack_pending_;
685 680
686 // True when waiting for RESIZE_ACK. 681 // True when waiting for RESIZE_ACK.
687 bool resize_ack_pending_; 682 bool resize_ack_pending_;
688 683
689 // Set if the color profile should fetched and sent to the RenderWidget
690 // during the WasResized() resize message flow.
691 bool color_profile_out_of_date_;
692
693 // The current size of the RenderWidget. 684 // The current size of the RenderWidget.
694 gfx::Size current_size_; 685 gfx::Size current_size_;
695 686
696 // Resize information that was previously sent to the renderer. 687 // Resize information that was previously sent to the renderer.
697 std::unique_ptr<ResizeParams> old_resize_params_; 688 std::unique_ptr<ResizeParams> old_resize_params_;
698 689
699 // The next auto resize to send. 690 // The next auto resize to send.
700 gfx::Size new_auto_size_; 691 gfx::Size new_auto_size_;
701 692
702 // True if the render widget host should track the render widget's size as 693 // True if the render widget host should track the render widget's size as
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 #endif 826 #endif
836 827
837 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 828 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
838 829
839 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 830 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
840 }; 831 };
841 832
842 } // namespace content 833 } // namespace content
843 834
844 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 835 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698