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

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

Issue 10383239: Move NativeWebKeyboardEvent to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 7 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/property_bag.h" 9 #include "base/property_bag.h"
10 #include "base/sys_string_conversions.h" 10 #include "base/sys_string_conversions.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #import "chrome/browser/ui/browser_dialogs.h" 13 #import "chrome/browser/ui/browser_dialogs.h"
14 #import "chrome/browser/ui/cocoa/browser_command_executor.h" 14 #import "chrome/browser/ui/cocoa/browser_command_executor.h"
15 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h" 15 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h"
16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
17 #include "chrome/browser/ui/webui/web_dialog_controller.h" 17 #include "chrome/browser/ui/webui/web_dialog_controller.h"
18 #include "chrome/browser/ui/webui/web_dialog_delegate.h" 18 #include "chrome/browser/ui/webui/web_dialog_delegate.h"
19 #include "chrome/browser/ui/webui/web_dialog_web_contents_delegate.h" 19 #include "chrome/browser/ui/webui/web_dialog_web_contents_delegate.h"
20 #include "content/public/browser/native_web_keyboard_event.h" 20 #include "content/public/browser/native_web_keyboard_event.h"
21 #include "content/public/browser/web_contents.h" 21 #include "content/public/browser/web_contents.h"
22 #include "content/public/browser/web_ui_message_handler.h" 22 #include "content/public/browser/web_ui_message_handler.h"
23 #include "ui/base/keycodes/keyboard_codes.h" 23 #include "ui/base/keycodes/keyboard_codes.h"
24 #include "ui/gfx/size.h" 24 #include "ui/gfx/size.h"
25 25
26 using content::NativeWebKeyboardEvent;
26 using content::WebContents; 27 using content::WebContents;
27 using content::WebUIMessageHandler; 28 using content::WebUIMessageHandler;
28 29
29 // Thin bridge that routes notifications to 30 // Thin bridge that routes notifications to
30 // WebDialogWindowController's member variables. 31 // WebDialogWindowController's member variables.
31 class WebDialogWindowDelegateBridge 32 class WebDialogWindowDelegateBridge
32 : public WebDialogDelegate, 33 : public WebDialogDelegate,
33 public WebDialogWebContentsDelegate { 34 public WebDialogWebContentsDelegate {
34 public: 35 public:
35 // All parameters must be non-NULL/non-nil. 36 // All parameters must be non-NULL/non-nil.
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 // TODO(akalin): Figure out why implementing (void)cancel:(id)sender 371 // TODO(akalin): Figure out why implementing (void)cancel:(id)sender
371 // to do the above doesn't work. 372 // to do the above doesn't work.
372 } 373 }
373 374
374 - (void)windowWillClose:(NSNotification*)notification { 375 - (void)windowWillClose:(NSNotification*)notification {
375 delegate_->WindowControllerClosed(); 376 delegate_->WindowControllerClosed();
376 [self autorelease]; 377 [self autorelease];
377 } 378 }
378 379
379 @end 380 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.mm ('k') | chrome/browser/ui/gtk/browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698