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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac_editcommand_helper.h

Issue 10804031: Move more files into the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_EDITCOMMAND_HE LPER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_EDITCOMMAND_HE LPER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_EDITCOMMAND_HE LPER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_EDITCOMMAND_HE LPER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/hash_tables.h" 11 #include "base/hash_tables.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "content/browser/renderer_host/render_widget_host_view_mac.h" 13 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
14 14
15 namespace content {
16
15 // This class mimics the behavior of WebKit's WebView class in a way that makes 17 // This class mimics the behavior of WebKit's WebView class in a way that makes
16 // sense for Chrome. 18 // sense for Chrome.
17 // 19 //
18 // WebCore has the concept of "core commands", basically named actions such as 20 // WebCore has the concept of "core commands", basically named actions such as
19 // "Select All" and "Move Cursor Left". The commands are executed using their 21 // "Select All" and "Move Cursor Left". The commands are executed using their
20 // string value by WebCore. 22 // string value by WebCore.
21 // 23 //
22 // This class is responsible for 2 things: 24 // This class is responsible for 2 things:
23 // 1. Provide an abstraction to determine the enabled/disabled state of menu 25 // 1. Provide an abstraction to determine the enabled/disabled state of menu
24 // items that correspond to edit commands. 26 // items that correspond to edit commands.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Gets a list of all the selectors that AddEditingSelectorsToClass adds to 61 // Gets a list of all the selectors that AddEditingSelectorsToClass adds to
60 // the aforementioned class. 62 // the aforementioned class.
61 // returns an array of NSStrings WITHOUT the trailing ':'s. 63 // returns an array of NSStrings WITHOUT the trailing ':'s.
62 NSArray* GetEditSelectorNames(); 64 NSArray* GetEditSelectorNames();
63 65
64 private: 66 private:
65 base::hash_set<std::string> edit_command_set_; 67 base::hash_set<std::string> edit_command_set_;
66 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMacEditCommandHelper); 68 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMacEditCommandHelper);
67 }; 69 };
68 70
71 } // namespace content
72
69 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_EDITCOMMAND _HELPER_H_ 73 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_EDITCOMMAND _HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698