| OLD | NEW |
| 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 19 matching lines...) Expand all Loading... |
| 30 bool WebContentsDelegate::CanOverscrollContent() const { return false; } | 30 bool WebContentsDelegate::CanOverscrollContent() const { return false; } |
| 31 | 31 |
| 32 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const { | 32 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const { |
| 33 return gfx::Rect(); | 33 return gfx::Rect(); |
| 34 } | 34 } |
| 35 | 35 |
| 36 bool WebContentsDelegate::ShouldSuppressDialogs() { | 36 bool WebContentsDelegate::ShouldSuppressDialogs() { |
| 37 return false; | 37 return false; |
| 38 } | 38 } |
| 39 | 39 |
| 40 bool WebContentsDelegate::ShouldPreserveAbortedURLs(WebContents* source) { |
| 41 return false; |
| 42 } |
| 43 |
| 40 bool WebContentsDelegate::AddMessageToConsole(WebContents* source, | 44 bool WebContentsDelegate::AddMessageToConsole(WebContents* source, |
| 41 int32 level, | 45 int32 level, |
| 42 const base::string16& message, | 46 const base::string16& message, |
| 43 int32 line_no, | 47 int32 line_no, |
| 44 const base::string16& source_id) { | 48 const base::string16& source_id) { |
| 45 return false; | 49 return false; |
| 46 } | 50 } |
| 47 | 51 |
| 48 void WebContentsDelegate::BeforeUnloadFired(WebContents* web_contents, | 52 void WebContentsDelegate::BeforeUnloadFired(WebContents* web_contents, |
| 49 bool proceed, | 53 bool proceed, |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( | 198 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( |
| 195 const WebContents* web_contents) const { | 199 const WebContents* web_contents) const { |
| 196 return gfx::Size(); | 200 return gfx::Size(); |
| 197 } | 201 } |
| 198 | 202 |
| 199 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { | 203 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { |
| 200 return false; | 204 return false; |
| 201 } | 205 } |
| 202 | 206 |
| 203 } // namespace content | 207 } // namespace content |
| OLD | NEW |