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

Side by Side Diff: content/public/browser/web_contents_delegate.cc

Issue 964403003: Make it possible to set the display mode from Chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Allowed include of "third_party/WebKit/public/platform/WebDisplayMode.h" Created 5 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 #include "content/public/browser/web_contents_delegate.h" 5 #include "content/public/browser/web_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 bool WebContentsDelegate::EmbedsFullscreenWidget() const { 145 bool WebContentsDelegate::EmbedsFullscreenWidget() const {
146 return false; 146 return false;
147 } 147 }
148 148
149 bool WebContentsDelegate::IsFullscreenForTabOrPending( 149 bool WebContentsDelegate::IsFullscreenForTabOrPending(
150 const WebContents* web_contents) const { 150 const WebContents* web_contents) const {
151 return false; 151 return false;
152 } 152 }
153 153
154 blink::WebDisplayMode WebContentsDelegate::GetDisplayMode(
155 const WebContents* web_contents) const {
156 return blink::WebDisplayModeBrowser;
157 }
158
154 content::ColorChooser* WebContentsDelegate::OpenColorChooser( 159 content::ColorChooser* WebContentsDelegate::OpenColorChooser(
155 WebContents* web_contents, 160 WebContents* web_contents,
156 SkColor color, 161 SkColor color,
157 const std::vector<ColorSuggestion>& suggestions) { 162 const std::vector<ColorSuggestion>& suggestions) {
158 return nullptr; 163 return nullptr;
159 } 164 }
160 165
161 void WebContentsDelegate::RequestMediaAccessPermission( 166 void WebContentsDelegate::RequestMediaAccessPermission(
162 WebContents* web_contents, 167 WebContents* web_contents,
163 const MediaStreamRequest& request, 168 const MediaStreamRequest& request,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 216
212 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { 217 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) {
213 return false; 218 return false;
214 } 219 }
215 220
216 bool WebContentsDelegate::SaveFrame(const GURL& url, const Referrer& referrer) { 221 bool WebContentsDelegate::SaveFrame(const GURL& url, const Referrer& referrer) {
217 return false; 222 return false;
218 } 223 }
219 224
220 } // namespace content 225 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698