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

Side by Side Diff: content/browser/tab_contents/tab_contents_delegate.cc

Issue 8553001: views: Add an Options enum to MessageBoxView control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adding an IPC_MESSAGE_EXPORT to line 30 of param_traits_macro.h makes it link in shared build Created 9 years 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/browser/tab_contents/tab_contents.cc ('k') | content/common/view_messages.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/tab_contents/tab_contents_delegate.h" 5 #include "content/browser/tab_contents/tab_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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 void TabContentsDelegate::DidNavigateToPendingEntry(TabContents* tab) { 227 void TabContentsDelegate::DidNavigateToPendingEntry(TabContents* tab) {
228 } 228 }
229 229
230 // A stubbed-out version of JavaScriptDialogCreator that doesn't do anything. 230 // A stubbed-out version of JavaScriptDialogCreator that doesn't do anything.
231 class JavaScriptDialogCreatorStub : public content::JavaScriptDialogCreator { 231 class JavaScriptDialogCreatorStub : public content::JavaScriptDialogCreator {
232 public: 232 public:
233 static JavaScriptDialogCreatorStub* GetInstance() { 233 static JavaScriptDialogCreatorStub* GetInstance() {
234 return Singleton<JavaScriptDialogCreatorStub>::get(); 234 return Singleton<JavaScriptDialogCreatorStub>::get();
235 } 235 }
236 236
237 virtual void RunJavaScriptDialog(content::JavaScriptDialogDelegate* delegate, 237 virtual void RunJavaScriptDialog(
238 TitleType title_type, 238 content::JavaScriptDialogDelegate* delegate,
239 const string16& title, 239 TitleType title_type,
240 int dialog_flags, 240 const string16& title,
241 const string16& message_text, 241 ui::JavascriptMessageType javascript_message_type,
242 const string16& default_prompt_text, 242 const string16& message_text,
243 IPC::Message* reply_message, 243 const string16& default_prompt_text,
244 bool* did_suppress_message) OVERRIDE { 244 IPC::Message* reply_message,
245 bool* did_suppress_message) OVERRIDE {
245 *did_suppress_message = true; 246 *did_suppress_message = true;
246 } 247 }
247 248
248 virtual void RunBeforeUnloadDialog( 249 virtual void RunBeforeUnloadDialog(
249 content::JavaScriptDialogDelegate* delegate, 250 content::JavaScriptDialogDelegate* delegate,
250 const string16& message_text, 251 const string16& message_text,
251 IPC::Message* reply_message) OVERRIDE { 252 IPC::Message* reply_message) OVERRIDE {
252 delegate->OnDialogClosed(reply_message, true, string16()); 253 delegate->OnDialogClosed(reply_message, true, string16());
253 } 254 }
254 255
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 attached_contents_.insert(tab_contents); 344 attached_contents_.insert(tab_contents);
344 } 345 }
345 346
346 void TabContentsDelegate::Detach(TabContents* tab_contents) { 347 void TabContentsDelegate::Detach(TabContents* tab_contents) {
347 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); 348 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end());
348 attached_contents_.erase(tab_contents); 349 attached_contents_.erase(tab_contents);
349 } 350 }
350 351
351 void TabContentsDelegate::LostMouseLock() { 352 void TabContentsDelegate::LostMouseLock() {
352 } 353 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698