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

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

Issue 1135693006: Fix X11DesktopHandler::ActivateWindow on Unity for known user gestures Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 (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"
11 #include "content/public/browser/web_contents.h" 11 #include "content/public/browser/web_contents.h"
12 #include "content/public/common/bindings_policy.h" 12 #include "content/public/common/bindings_policy.h"
13 #include "content/public/common/url_constants.h" 13 #include "content/public/common/url_constants.h"
14 #include "ui/gfx/geometry/rect.h" 14 #include "ui/gfx/geometry/rect.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 WebContentsDelegate::WebContentsDelegate() { 18 WebContentsDelegate::WebContentsDelegate() {
19 } 19 }
20 20
21 WebContents* WebContentsDelegate::OpenURLFromTab(WebContents* source, 21 WebContents* WebContentsDelegate::OpenURLFromTab(WebContents* source,
22 const OpenURLParams& params) { 22 const OpenURLParams& params) {
23 return nullptr; 23 return nullptr;
24 } 24 }
25 25
26 void WebContentsDelegate::ActivateContentsForUserGesture(
27 WebContents* contents) {
28 ActivateContents(contents);
29 }
30
26 bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const { 31 bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const {
27 return false; 32 return false;
28 } 33 }
29 34
30 bool WebContentsDelegate::CanOverscrollContent() const { return false; } 35 bool WebContentsDelegate::CanOverscrollContent() const { return false; }
31 36
32 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const { 37 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const {
33 return gfx::Rect(); 38 return gfx::Rect();
34 } 39 }
35 40
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 225
221 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { 226 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) {
222 return false; 227 return false;
223 } 228 }
224 229
225 bool WebContentsDelegate::SaveFrame(const GURL& url, const Referrer& referrer) { 230 bool WebContentsDelegate::SaveFrame(const GURL& url, const Referrer& referrer) {
226 return false; 231 return false;
227 } 232 }
228 233
229 } // namespace content 234 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698