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

Side by Side Diff: content/public/browser/render_widget_host_view.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9
9 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
10 #include "build/build_config.h" 11 #include "build/build_config.h"
11 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
12 #include "third_party/WebKit/public/web/WebInputEvent.h" 13 #include "third_party/WebKit/public/web/WebInputEvent.h"
13 #include "third_party/skia/include/core/SkBitmap.h" 14 #include "third_party/skia/include/core/SkBitmap.h"
14 #include "third_party/skia/include/core/SkColor.h" 15 #include "third_party/skia/include/core/SkColor.h"
15 #include "third_party/skia/include/core/SkRegion.h" 16 #include "third_party/skia/include/core/SkRegion.h"
16 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
17 18
18 class GURL; 19 class GURL;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 virtual gfx::Size GetVisibleViewportSize() const = 0; 147 virtual gfx::Size GetVisibleViewportSize() const = 0;
147 148
148 // Set insets for the visible region of the root window. Used to compute the 149 // Set insets for the visible region of the root window. Used to compute the
149 // visible viewport. 150 // visible viewport.
150 virtual void SetInsets(const gfx::Insets& insets) = 0; 151 virtual void SetInsets(const gfx::Insets& insets) = 0;
151 152
152 // Begin subscribing for presentation events and captured frames. 153 // Begin subscribing for presentation events and captured frames.
153 // |subscriber| is now owned by this object, it will be called only on the 154 // |subscriber| is now owned by this object, it will be called only on the
154 // UI thread. 155 // UI thread.
155 virtual void BeginFrameSubscription( 156 virtual void BeginFrameSubscription(
156 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) = 0; 157 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) = 0;
157 158
158 // End subscribing for frame presentation events. FrameSubscriber will be 159 // End subscribing for frame presentation events. FrameSubscriber will be
159 // deleted after this call. 160 // deleted after this call.
160 virtual void EndFrameSubscription() = 0; 161 virtual void EndFrameSubscription() = 0;
161 162
162 #if defined(OS_MACOSX) 163 #if defined(OS_MACOSX)
163 // Set the view's active state (i.e., tint state of controls). 164 // Set the view's active state (i.e., tint state of controls).
164 virtual void SetActive(bool active) = 0; 165 virtual void SetActive(bool active) = 0;
165 166
166 // Brings up the dictionary showing a definition for the selected text. 167 // Brings up the dictionary showing a definition for the selected text.
167 virtual void ShowDefinitionForSelection() = 0; 168 virtual void ShowDefinitionForSelection() = 0;
168 169
169 // Returns |true| if Mac OS X text to speech is supported. 170 // Returns |true| if Mac OS X text to speech is supported.
170 virtual bool SupportsSpeech() const = 0; 171 virtual bool SupportsSpeech() const = 0;
171 // Tells the view to speak the currently selected text. 172 // Tells the view to speak the currently selected text.
172 virtual void SpeakSelection() = 0; 173 virtual void SpeakSelection() = 0;
173 // Returns |true| if text is currently being spoken by Mac OS X. 174 // Returns |true| if text is currently being spoken by Mac OS X.
174 virtual bool IsSpeaking() const = 0; 175 virtual bool IsSpeaking() const = 0;
175 // Stops speaking, if it is currently in progress. 176 // Stops speaking, if it is currently in progress.
176 virtual void StopSpeaking() = 0; 177 virtual void StopSpeaking() = 0;
177 #endif // defined(OS_MACOSX) 178 #endif // defined(OS_MACOSX)
178 }; 179 };
179 180
180 } // namespace content 181 } // namespace content
181 182
182 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 183 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698