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

Side by Side Diff: chrome/browser/extensions/extension_host.cc

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 #include "chrome/browser/extensions/extension_host.h" 5 #include "chrome/browser/extensions/extension_host.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "ui/base/keycodes/keyboard_codes.h" 50 #include "ui/base/keycodes/keyboard_codes.h"
51 #include "ui/base/l10n/l10n_util.h" 51 #include "ui/base/l10n/l10n_util.h"
52 #include "ui/base/resource/resource_bundle.h" 52 #include "ui/base/resource/resource_bundle.h"
53 53
54 #if defined(TOOLKIT_VIEWS) 54 #if defined(TOOLKIT_VIEWS)
55 #include "ui/views/widget/widget.h" 55 #include "ui/views/widget/widget.h"
56 #endif 56 #endif
57 57
58 using WebKit::WebDragOperation; 58 using WebKit::WebDragOperation;
59 using WebKit::WebDragOperationsMask; 59 using WebKit::WebDragOperationsMask;
60 using content::NativeWebKeyboardEvent;
60 using content::OpenURLParams; 61 using content::OpenURLParams;
61 using content::RenderViewHost; 62 using content::RenderViewHost;
62 using content::SiteInstance; 63 using content::SiteInstance;
63 using content::WebContents; 64 using content::WebContents;
64 65
65 // Helper class that rate-limits the creation of renderer processes for 66 // Helper class that rate-limits the creation of renderer processes for
66 // ExtensionHosts, to avoid blocking the UI. 67 // ExtensionHosts, to avoid blocking the UI.
67 class ExtensionHost::ProcessCreationQueue { 68 class ExtensionHost::ProcessCreationQueue {
68 public: 69 public:
69 static ProcessCreationQueue* GetInstance() { 70 static ProcessCreationQueue* GetInstance() {
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 params.user_gesture = user_gesture; 587 params.user_gesture = user_gesture;
587 browser::Navigate(&params); 588 browser::Navigate(&params);
588 } 589 }
589 590
590 void ExtensionHost::RenderViewReady() { 591 void ExtensionHost::RenderViewReady() {
591 content::NotificationService::current()->Notify( 592 content::NotificationService::current()->Notify(
592 chrome::NOTIFICATION_EXTENSION_HOST_CREATED, 593 chrome::NOTIFICATION_EXTENSION_HOST_CREATED,
593 content::Source<Profile>(profile_), 594 content::Source<Profile>(profile_),
594 content::Details<ExtensionHost>(this)); 595 content::Details<ExtensionHost>(this));
595 } 596 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_host.h ('k') | chrome/browser/extensions/extension_host_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698