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

Side by Side Diff: chrome/browser/ui/cocoa/web_dialog_window_controller.mm

Issue 12279015: Mac Chromium style checker cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
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 #import "chrome/browser/ui/cocoa/web_dialog_window_controller.h" 5 #import "chrome/browser/ui/cocoa/web_dialog_window_controller.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_nsobject.h" 8 #include "base/memory/scoped_nsobject.h"
9 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
10 #import "chrome/browser/ui/browser_dialogs.h" 10 #import "chrome/browser/ui/browser_dialogs.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE; 51 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE;
52 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; 52 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE;
53 virtual void GetMinimumDialogSize(gfx::Size* size) const OVERRIDE; 53 virtual void GetMinimumDialogSize(gfx::Size* size) const OVERRIDE;
54 virtual std::string GetDialogArgs() const OVERRIDE; 54 virtual std::string GetDialogArgs() const OVERRIDE;
55 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; 55 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
56 virtual void OnCloseContents(WebContents* source, 56 virtual void OnCloseContents(WebContents* source,
57 bool* out_close_dialog) OVERRIDE; 57 bool* out_close_dialog) OVERRIDE;
58 virtual bool ShouldShowDialogTitle() const OVERRIDE { return true; } 58 virtual bool ShouldShowDialogTitle() const OVERRIDE { return true; }
59 59
60 // WebDialogWebContentsDelegate declarations. 60 // WebDialogWebContentsDelegate declarations.
61 virtual void MoveContents(WebContents* source, const gfx::Rect& pos); 61 virtual void MoveContents(WebContents* source, const gfx::Rect& pos) OVERRIDE;
62 virtual void HandleKeyboardEvent(content::WebContents* source, 62 virtual void HandleKeyboardEvent(
63 const NativeWebKeyboardEvent& event); 63 content::WebContents* source,
64 const NativeWebKeyboardEvent& event) OVERRIDE;
64 virtual void CloseContents(WebContents* source) OVERRIDE; 65 virtual void CloseContents(WebContents* source) OVERRIDE;
65 virtual content::WebContents* OpenURLFromTab( 66 virtual content::WebContents* OpenURLFromTab(
66 content::WebContents* source, 67 content::WebContents* source,
67 const content::OpenURLParams& params) OVERRIDE; 68 const content::OpenURLParams& params) OVERRIDE;
68 virtual void AddNewContents(content::WebContents* source, 69 virtual void AddNewContents(content::WebContents* source,
69 content::WebContents* new_contents, 70 content::WebContents* new_contents,
70 WindowOpenDisposition disposition, 71 WindowOpenDisposition disposition,
71 const gfx::Rect& initial_pos, 72 const gfx::Rect& initial_pos,
72 bool user_gesture, 73 bool user_gesture,
73 bool* was_blocked) OVERRIDE; 74 bool* was_blocked) OVERRIDE;
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // TODO(akalin): Figure out why implementing (void)cancel:(id)sender 360 // TODO(akalin): Figure out why implementing (void)cancel:(id)sender
360 // to do the above doesn't work. 361 // to do the above doesn't work.
361 } 362 }
362 363
363 - (void)windowWillClose:(NSNotification*)notification { 364 - (void)windowWillClose:(NSNotification*)notification {
364 delegate_->WindowControllerClosed(); 365 delegate_->WindowControllerClosed();
365 [self autorelease]; 366 [self autorelease];
366 } 367 }
367 368
368 @end 369 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698