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

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

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
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 #import "chrome/browser/ui/cocoa/html_dialog_window_controller.h" 5 #import "chrome/browser/ui/cocoa/html_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 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #import "chrome/browser/ui/browser_dialogs.h" 11 #import "chrome/browser/ui/browser_dialogs.h"
12 #import "chrome/browser/ui/cocoa/browser_command_executor.h" 12 #import "chrome/browser/ui/cocoa/browser_command_executor.h"
13 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h" 13 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h"
14 #include "chrome/browser/ui/dialog_style.h" 14 #include "chrome/browser/ui/dialog_style.h"
15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
16 #include "chrome/browser/ui/webui/html_dialog_tab_contents_delegate.h" 16 #include "chrome/browser/ui/webui/html_dialog_tab_contents_delegate.h"
17 #include "chrome/browser/ui/webui/html_dialog_ui.h" 17 #include "chrome/browser/ui/webui/html_dialog_ui.h"
18 #include "content/browser/tab_contents/tab_contents.h" 18 #include "content/browser/tab_contents/tab_contents.h"
19 #include "content/public/browser/native_web_keyboard_event.h" 19 #include "content/public/browser/native_web_keyboard_event.h"
20 #include "content/public/browser/web_ui_message_handler.h"
20 #include "ui/base/keycodes/keyboard_codes.h" 21 #include "ui/base/keycodes/keyboard_codes.h"
21 #include "ui/gfx/size.h" 22 #include "ui/gfx/size.h"
22 23
23 using content::WebContents; 24 using content::WebContents;
25 using content::WebUIMessageHandler;
24 26
25 // Thin bridge that routes notifications to 27 // Thin bridge that routes notifications to
26 // HtmlDialogWindowController's member variables. 28 // HtmlDialogWindowController's member variables.
27 class HtmlDialogWindowDelegateBridge : public HtmlDialogUIDelegate, 29 class HtmlDialogWindowDelegateBridge : public HtmlDialogUIDelegate,
28 public HtmlDialogTabContentsDelegate { 30 public HtmlDialogTabContentsDelegate {
29 public: 31 public:
30 // All parameters must be non-NULL/non-nil. 32 // All parameters must be non-NULL/non-nil.
31 HtmlDialogWindowDelegateBridge(HtmlDialogWindowController* controller, 33 HtmlDialogWindowDelegateBridge(HtmlDialogWindowController* controller,
32 Profile* profile, 34 Profile* profile,
33 HtmlDialogUIDelegate* delegate); 35 HtmlDialogUIDelegate* delegate);
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 // TODO(akalin): Figure out why implementing (void)cancel:(id)sender 313 // TODO(akalin): Figure out why implementing (void)cancel:(id)sender
312 // to do the above doesn't work. 314 // to do the above doesn't work.
313 } 315 }
314 316
315 - (void)windowWillClose:(NSNotification*)notification { 317 - (void)windowWillClose:(NSNotification*)notification {
316 delegate_->WindowControllerClosed(); 318 delegate_->WindowControllerClosed();
317 [self autorelease]; 319 [self autorelease];
318 } 320 }
319 321
320 @end 322 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698