| 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 23 matching lines...) Expand all Loading... |
| 34 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const { | 34 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const { |
| 35 return gfx::Rect(); | 35 return gfx::Rect(); |
| 36 } | 36 } |
| 37 | 37 |
| 38 bool WebContentsDelegate::ShouldSuppressDialogs() { | 38 bool WebContentsDelegate::ShouldSuppressDialogs() { |
| 39 return false; | 39 return false; |
| 40 } | 40 } |
| 41 | 41 |
| 42 bool WebContentsDelegate::AddMessageToConsole(WebContents* source, | 42 bool WebContentsDelegate::AddMessageToConsole(WebContents* source, |
| 43 int32 level, | 43 int32 level, |
| 44 const string16& message, | 44 const base::string16& message, |
| 45 int32 line_no, | 45 int32 line_no, |
| 46 const string16& source_id) { | 46 const base::string16& source_id) { |
| 47 return false; | 47 return false; |
| 48 } | 48 } |
| 49 | 49 |
| 50 void WebContentsDelegate::BeforeUnloadFired(WebContents* web_contents, | 50 void WebContentsDelegate::BeforeUnloadFired(WebContents* web_contents, |
| 51 bool proceed, | 51 bool proceed, |
| 52 bool* proceed_to_fire_unload) { | 52 bool* proceed_to_fire_unload) { |
| 53 *proceed_to_fire_unload = true; | 53 *proceed_to_fire_unload = true; |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool WebContentsDelegate::ShouldFocusLocationBarByDefault(WebContents* source) { | 56 bool WebContentsDelegate::ShouldFocusLocationBarByDefault(WebContents* source) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 } | 118 } |
| 119 | 119 |
| 120 bool WebContentsDelegate::OnGoToEntryOffset(int offset) { | 120 bool WebContentsDelegate::OnGoToEntryOffset(int offset) { |
| 121 return true; | 121 return true; |
| 122 } | 122 } |
| 123 | 123 |
| 124 bool WebContentsDelegate::ShouldCreateWebContents( | 124 bool WebContentsDelegate::ShouldCreateWebContents( |
| 125 WebContents* web_contents, | 125 WebContents* web_contents, |
| 126 int route_id, | 126 int route_id, |
| 127 WindowContainerType window_container_type, | 127 WindowContainerType window_container_type, |
| 128 const string16& frame_name, | 128 const base::string16& frame_name, |
| 129 const GURL& target_url, | 129 const GURL& target_url, |
| 130 const std::string& partition_id, | 130 const std::string& partition_id, |
| 131 SessionStorageNamespace* session_storage_namespace) { | 131 SessionStorageNamespace* session_storage_namespace) { |
| 132 return true; | 132 return true; |
| 133 } | 133 } |
| 134 | 134 |
| 135 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager() { | 135 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager() { |
| 136 return NULL; | 136 return NULL; |
| 137 } | 137 } |
| 138 | 138 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); | 184 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); |
| 185 attached_contents_.erase(web_contents); | 185 attached_contents_.erase(web_contents); |
| 186 } | 186 } |
| 187 | 187 |
| 188 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( | 188 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( |
| 189 const WebContents* web_contents) const { | 189 const WebContents* web_contents) const { |
| 190 return gfx::Size(); | 190 return gfx::Size(); |
| 191 } | 191 } |
| 192 | 192 |
| 193 } // namespace content | 193 } // namespace content |
| OLD | NEW |