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 "app/keyboard_codes.h" | 7 #include "app/keyboard_codes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/scoped_nsobject.h" | 9 #include "base/scoped_nsobject.h" |
10 #include "base/sys_string_conversions.h" | 10 #include "base/sys_string_conversions.h" |
11 #include "chrome/browser/dom_ui/html_dialog_ui.h" | 11 #include "chrome/browser/dom_ui/html_dialog_ui.h" |
12 #include "chrome/browser/dom_ui/html_dialog_tab_contents_delegate.h" | 12 #include "chrome/browser/dom_ui/html_dialog_tab_contents_delegate.h" |
13 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/tab_contents/tab_contents.h" | 14 #include "chrome/browser/tab_contents/tab_contents.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" | 18 #include "gfx/size.h" |
19 #include "ipc/ipc_message.h" | 19 #include "ipc/ipc_message.h" |
20 | 20 |
21 // Thin bridge that routes notifications to | 21 // Thin bridge that routes notifications to |
22 // HtmlDialogWindowController's member variables. | 22 // HtmlDialogWindowController's member variables. |
23 class HtmlDialogWindowDelegateBridge : public HtmlDialogUIDelegate, | 23 class HtmlDialogWindowDelegateBridge : public HtmlDialogUIDelegate, |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 // TODO(akalin): Figure out why implementing (void)cancel:(id)sender | 284 // TODO(akalin): Figure out why implementing (void)cancel:(id)sender |
285 // to do the above doesn't work. | 285 // to do the above doesn't work. |
286 } | 286 } |
287 | 287 |
288 - (void)windowWillClose:(NSNotification*)notification { | 288 - (void)windowWillClose:(NSNotification*)notification { |
289 delegate_->WindowControllerClosed(); | 289 delegate_->WindowControllerClosed(); |
290 [self autorelease]; | 290 [self autorelease]; |
291 } | 291 } |
292 | 292 |
293 @end | 293 @end |
OLD | NEW |