OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 | 8 |
9 MSVC_PUSH_WARNING_LEVEL(0); | 9 MSVC_PUSH_WARNING_LEVEL(0); |
10 #include "ContextMenu.h" | 10 #include "ContextMenu.h" |
11 #include "Document.h" | 11 #include "Document.h" |
12 #include "DocumentLoader.h" | 12 #include "DocumentLoader.h" |
13 #include "Editor.h" | 13 #include "Editor.h" |
14 #include "EventHandler.h" | 14 #include "EventHandler.h" |
15 #include "FrameLoader.h" | 15 #include "FrameLoader.h" |
16 #include "FrameView.h" | 16 #include "FrameView.h" |
17 #include "HitTestResult.h" | 17 #include "HitTestResult.h" |
18 #include "KURL.h" | 18 #include "KURL.h" |
19 #include "Widget.h" | 19 #include "Widget.h" |
20 MSVC_POP_WARNING(); | 20 MSVC_POP_WARNING(); |
21 #undef LOG | 21 #undef LOG |
22 | 22 |
23 #include "webkit/glue/context_menu_client_impl.h" | 23 #include "webkit/glue/context_menu_client_impl.h" |
24 | 24 |
25 #include "base/string_util.h" | 25 #include "base/string_util.h" |
26 #include "webkit/glue/context_node_types.h" | 26 #include "webkit/glue/context_menu.h" |
27 #include "webkit/glue/glue_util.h" | 27 #include "webkit/glue/glue_util.h" |
28 #include "webkit/glue/webdocumentloader_impl.h" | 28 #include "webkit/glue/webdocumentloader_impl.h" |
29 #include "webkit/glue/webview_impl.h" | 29 #include "webkit/glue/webview_impl.h" |
30 | 30 |
31 #include "base/word_iterator.h" | 31 #include "base/word_iterator.h" |
32 | 32 |
33 namespace { | 33 namespace { |
34 | 34 |
35 // Helper function to determine whether text is a single word or a sentence. | 35 // Helper function to determine whether text is a single word or a sentence. |
36 bool IsASingleWord(const std::wstring& text) { | 36 bool IsASingleWord(const std::wstring& text) { |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 272 |
273 bool ContextMenuClientImpl::shouldIncludeInspectElementItem() { | 273 bool ContextMenuClientImpl::shouldIncludeInspectElementItem() { |
274 return false; // TODO(jackson): Eventually include the inspector context me
nu item | 274 return false; // TODO(jackson): Eventually include the inspector context me
nu item |
275 } | 275 } |
276 | 276 |
277 #if defined(OS_MACOSX) | 277 #if defined(OS_MACOSX) |
278 void ContextMenuClientImpl::searchWithSpotlight() { | 278 void ContextMenuClientImpl::searchWithSpotlight() { |
279 // TODO(pinkerton): write this | 279 // TODO(pinkerton): write this |
280 } | 280 } |
281 #endif | 281 #endif |
OLD | NEW |