OLD | NEW |
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/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
10 #import "chrome/browser/ui/browser_dialogs.h" | 10 #import "chrome/browser/ui/browser_dialogs.h" |
11 #import "chrome/browser/ui/cocoa/browser_command_executor.h" | 11 #import "chrome/browser/ui/cocoa/browser_command_executor.h" |
12 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h" | 12 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h" |
13 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h" | 13 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h" |
14 #include "content/public/browser/native_web_keyboard_event.h" | 14 #include "content/public/browser/native_web_keyboard_event.h" |
15 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
16 #include "content/public/browser/web_ui_message_handler.h" | 16 #include "content/public/browser/web_ui_message_handler.h" |
17 #include "ui/events/keycodes/keyboard_codes.h" | 17 #include "ui/events/keycodes/keyboard_codes.h" |
18 #include "ui/gfx/size.h" | 18 #include "ui/gfx/geometry/size.h" |
19 #include "ui/web_dialogs/web_dialog_delegate.h" | 19 #include "ui/web_dialogs/web_dialog_delegate.h" |
20 #include "ui/web_dialogs/web_dialog_web_contents_delegate.h" | 20 #include "ui/web_dialogs/web_dialog_web_contents_delegate.h" |
21 | 21 |
22 using content::NativeWebKeyboardEvent; | 22 using content::NativeWebKeyboardEvent; |
23 using content::WebContents; | 23 using content::WebContents; |
24 using content::WebUIMessageHandler; | 24 using content::WebUIMessageHandler; |
25 using ui::WebDialogDelegate; | 25 using ui::WebDialogDelegate; |
26 using ui::WebDialogUI; | 26 using ui::WebDialogUI; |
27 using ui::WebDialogWebContentsDelegate; | 27 using ui::WebDialogWebContentsDelegate; |
28 | 28 |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 // TODO(akalin): Figure out why implementing (void)cancel:(id)sender | 359 // TODO(akalin): Figure out why implementing (void)cancel:(id)sender |
360 // to do the above doesn't work. | 360 // to do the above doesn't work. |
361 } | 361 } |
362 | 362 |
363 - (void)windowWillClose:(NSNotification*)notification { | 363 - (void)windowWillClose:(NSNotification*)notification { |
364 delegate_->WindowControllerClosed(); | 364 delegate_->WindowControllerClosed(); |
365 [self autorelease]; | 365 [self autorelease]; |
366 } | 366 } |
367 | 367 |
368 @end | 368 @end |
OLD | NEW |