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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.h

Issue 1113573002: Maintain minimal error response. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build issue. Created 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/renderer_host/render_widget_host_view_base.h" 9 #include "content/browser/renderer_host/render_widget_host_view_base.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const std::vector<gfx::Rect>& character_bounds) override; 73 const std::vector<gfx::Rect>& character_bounds) override;
74 void RenderProcessGone(base::TerminationStatus status, 74 void RenderProcessGone(base::TerminationStatus status,
75 int error_code) override; 75 int error_code) override;
76 void Destroy() override; 76 void Destroy() override;
77 void SetTooltipText(const base::string16& tooltip_text) override; 77 void SetTooltipText(const base::string16& tooltip_text) override;
78 void SelectionChanged(const base::string16& text, 78 void SelectionChanged(const base::string16& text,
79 size_t offset, 79 size_t offset,
80 const gfx::Range& range) override; 80 const gfx::Range& range) override;
81 void SelectionBoundsChanged( 81 void SelectionBoundsChanged(
82 const ViewHostMsg_SelectionBounds_Params& params) override; 82 const ViewHostMsg_SelectionBounds_Params& params) override;
83 void CopyFromCompositingSurface(const gfx::Rect& src_subrect, 83 void CopyFromCompositingSurface(
84 const gfx::Size& dst_size, 84 const gfx::Rect& src_subrect,
85 ReadbackRequestCallback& callback, 85 const gfx::Size& dst_size,
86 const SkColorType color_type) override; 86 ReadbackRequestCallback& callback,
87 const SkColorType preferred_color_type) override;
87 void CopyFromCompositingSurfaceToVideoFrame( 88 void CopyFromCompositingSurfaceToVideoFrame(
88 const gfx::Rect& src_subrect, 89 const gfx::Rect& src_subrect,
89 const scoped_refptr<media::VideoFrame>& target, 90 const scoped_refptr<media::VideoFrame>& target,
90 const base::Callback<void(bool)>& callback) override; 91 const base::Callback<void(bool)>& callback) override;
91 bool CanCopyToVideoFrame() const override; 92 bool CanCopyToVideoFrame() const override;
92 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 93 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
93 void OnSwapCompositorFrame(uint32 output_surface_id, 94 void OnSwapCompositorFrame(uint32 output_surface_id,
94 scoped_ptr<cc::CompositorFrame> frame) override; 95 scoped_ptr<cc::CompositorFrame> frame) override;
95 void GetScreenInfo(blink::WebScreenInfo* results) override; 96 void GetScreenInfo(blink::WebScreenInfo* results) override;
96 gfx::Rect GetBoundsInRootWindow() override; 97 gfx::Rect GetBoundsInRootWindow() override;
(...skipping 28 matching lines...) Expand all
125 #endif // defined(OS_ANDROID) 126 #endif // defined(OS_ANDROID)
126 127
127 #if defined(OS_WIN) 128 #if defined(OS_WIN)
128 void SetParentNativeViewAccessible( 129 void SetParentNativeViewAccessible(
129 gfx::NativeViewAccessible accessible_parent) override; 130 gfx::NativeViewAccessible accessible_parent) override;
130 gfx::NativeViewId GetParentForWindowlessPlugin() const override; 131 gfx::NativeViewId GetParentForWindowlessPlugin() const override;
131 #endif 132 #endif
132 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( 133 BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
133 BrowserAccessibilityDelegate* delegate) override; 134 BrowserAccessibilityDelegate* delegate) override;
134 135
135 SkColorType PreferredReadbackFormat() override;
136
137 protected: 136 protected:
138 friend class RenderWidgetHostView; 137 friend class RenderWidgetHostView;
139 138
140 // The last scroll offset of the view. 139 // The last scroll offset of the view.
141 gfx::Vector2dF last_scroll_offset_; 140 gfx::Vector2dF last_scroll_offset_;
142 141
143 // Members will become private when RenderWidgetHostViewGuest is removed. 142 // Members will become private when RenderWidgetHostViewGuest is removed.
144 // The model object. 143 // The model object.
145 RenderWidgetHostImpl* host_; 144 RenderWidgetHostImpl* host_;
146 145
147 // frame_connector_ provides a platform abstraction. Messages 146 // frame_connector_ provides a platform abstraction. Messages
148 // sent through it are routed to the embedding renderer process. 147 // sent through it are routed to the embedding renderer process.
149 CrossProcessFrameConnector* frame_connector_; 148 CrossProcessFrameConnector* frame_connector_;
150 149
151 private: 150 private:
152 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); 151 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame);
153 }; 152 };
154 153
155 } // namespace content 154 } // namespace content
156 155
157 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 156 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
OLDNEW
« no previous file with comments | « content/browser/compositor/delegated_frame_host.cc ('k') | content/browser/frame_host/render_widget_host_view_child_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698