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

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

Issue 9265018: Change grow box computation back to a method on BrowserWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/browser/javascript_dialogs.h" 10 #include "content/browser/javascript_dialogs.h"
(...skipping 16 matching lines...) Expand all
27 bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const { 27 bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const {
28 return false; 28 return false;
29 } 29 }
30 30
31 bool WebContentsDelegate::IsApplication() const { return false; } 31 bool WebContentsDelegate::IsApplication() const { return false; }
32 32
33 bool WebContentsDelegate::CanReloadContents(WebContents* source) const { 33 bool WebContentsDelegate::CanReloadContents(WebContents* source) const {
34 return true; 34 return true;
35 } 35 }
36 36
37 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const {
38 return gfx::Rect();
39 }
40
37 bool WebContentsDelegate::ShouldSuppressDialogs() { 41 bool WebContentsDelegate::ShouldSuppressDialogs() {
38 return false; 42 return false;
39 } 43 }
40 44
41 void WebContentsDelegate::BeforeUnloadFired(WebContents* tab, 45 void WebContentsDelegate::BeforeUnloadFired(WebContents* tab,
42 bool proceed, 46 bool proceed,
43 bool* proceed_to_fire_unload) { 47 bool* proceed_to_fire_unload) {
44 *proceed_to_fire_unload = true; 48 *proceed_to_fire_unload = true;
45 } 49 }
46 50
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 DCHECK(attached_contents_.find(web_contents) == attached_contents_.end()); 184 DCHECK(attached_contents_.find(web_contents) == attached_contents_.end());
181 attached_contents_.insert(web_contents); 185 attached_contents_.insert(web_contents);
182 } 186 }
183 187
184 void WebContentsDelegate::Detach(WebContents* web_contents) { 188 void WebContentsDelegate::Detach(WebContents* web_contents) {
185 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); 189 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end());
186 attached_contents_.erase(web_contents); 190 attached_contents_.erase(web_contents);
187 } 191 }
188 192
189 } // namespace content 193 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698