| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/scoped_nsobject.h" | 8 #include "base/scoped_nsobject.h" |
| 9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
| 10 #include "chrome/browser/dom_ui/html_dialog_ui.h" | 10 #include "chrome/browser/dom_ui/html_dialog_ui.h" |
| 11 #include "chrome/browser/dom_ui/html_dialog_tab_contents_delegate.h" | 11 #include "chrome/browser/dom_ui/html_dialog_tab_contents_delegate.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/tab_contents/tab_contents.h" | 13 #include "chrome/browser/tab_contents/tab_contents.h" |
| 14 #import "chrome/browser/ui/browser_dialogs.h" | 14 #import "chrome/browser/ui/browser_dialogs.h" |
| 15 #import "chrome/browser/ui/cocoa/browser_command_executor.h" | 15 #import "chrome/browser/ui/cocoa/browser_command_executor.h" |
| 16 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h" | 16 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h" |
| 17 #include "chrome/common/native_web_keyboard_event.h" | 17 #include "chrome/common/native_web_keyboard_event.h" |
| 18 #include "gfx/size.h" | |
| 19 #include "ipc/ipc_message.h" | 18 #include "ipc/ipc_message.h" |
| 20 #include "ui/base/keycodes/keyboard_codes.h" | 19 #include "ui/base/keycodes/keyboard_codes.h" |
| 20 #include "ui/gfx/size.h" |
| 21 | 21 |
| 22 // Thin bridge that routes notifications to | 22 // Thin bridge that routes notifications to |
| 23 // HtmlDialogWindowController's member variables. | 23 // HtmlDialogWindowController's member variables. |
| 24 class HtmlDialogWindowDelegateBridge : public HtmlDialogUIDelegate, | 24 class HtmlDialogWindowDelegateBridge : public HtmlDialogUIDelegate, |
| 25 public HtmlDialogTabContentsDelegate { | 25 public HtmlDialogTabContentsDelegate { |
| 26 public: | 26 public: |
| 27 // All parameters must be non-NULL/non-nil. | 27 // All parameters must be non-NULL/non-nil. |
| 28 HtmlDialogWindowDelegateBridge(HtmlDialogWindowController* controller, | 28 HtmlDialogWindowDelegateBridge(HtmlDialogWindowController* controller, |
| 29 Profile* profile, | 29 Profile* profile, |
| 30 HtmlDialogUIDelegate* delegate); | 30 HtmlDialogUIDelegate* delegate); |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 // TODO(akalin): Figure out why implementing (void)cancel:(id)sender | 286 // TODO(akalin): Figure out why implementing (void)cancel:(id)sender |
| 287 // to do the above doesn't work. | 287 // to do the above doesn't work. |
| 288 } | 288 } |
| 289 | 289 |
| 290 - (void)windowWillClose:(NSNotification*)notification { | 290 - (void)windowWillClose:(NSNotification*)notification { |
| 291 delegate_->WindowControllerClosed(); | 291 delegate_->WindowControllerClosed(); |
| 292 [self autorelease]; | 292 [self autorelease]; |
| 293 } | 293 } |
| 294 | 294 |
| 295 @end | 295 @end |
| OLD | NEW |