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

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu_controller.cc

Issue 28053: Add the hunspell project to Chrome.app and get spellchecker compiling for Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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) 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "chrome/browser/tab_contents/render_view_context_menu_controller.h" 7 #include "chrome/browser/tab_contents/render_view_context_menu_controller.h"
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/scoped_clipboard_writer.h" 11 #include "base/scoped_clipboard_writer.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "chrome/app/chrome_dll_resource.h" 13 #include "chrome/app/chrome_dll_resource.h"
14 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/download/download_manager.h" 15 #include "chrome/browser/download/download_manager.h"
16 #include "chrome/browser/download/save_package.h" 16 #include "chrome/browser/download/save_package.h"
17 #include "chrome/browser/profile.h" 17 #include "chrome/browser/profile.h"
18 #include "chrome/browser/search_engines/template_url_model.h" 18 #include "chrome/browser/search_engines/template_url_model.h"
19 #include "chrome/browser/spellchecker.h"
19 #include "chrome/browser/tab_contents/navigation_controller.h" 20 #include "chrome/browser/tab_contents/navigation_controller.h"
20 #include "chrome/browser/tab_contents/navigation_entry.h" 21 #include "chrome/browser/tab_contents/navigation_entry.h"
21 #include "chrome/browser/tab_contents/web_contents.h" 22 #include "chrome/browser/tab_contents/web_contents.h"
22 #include "chrome/common/chrome_paths.h" 23 #include "chrome/common/chrome_paths.h"
23 #include "chrome/common/chrome_switches.h" 24 #include "chrome/common/chrome_switches.h"
24 #include "chrome/common/l10n_util.h" 25 #include "chrome/common/l10n_util.h"
25 #include "chrome/common/pref_names.h" 26 #include "chrome/common/pref_names.h"
26 #include "chrome/common/pref_service.h" 27 #include "chrome/common/pref_service.h"
27 #include "grit/generated_resources.h" 28 #include "grit/generated_resources.h"
28 #include "net/base/escape.h" 29 #include "net/base/escape.h"
29 #include "net/base/net_util.h" 30 #include "net/base/net_util.h"
30 #include "net/url_request/url_request.h" 31 #include "net/url_request/url_request.h"
31 32
32 #if defined(OS_WIN) 33 #if defined(OS_WIN)
33 // TODO(port): port these files. 34 // TODO(port): port these files.
34 #include "chrome/browser/spellchecker.h"
35 #include "chrome/browser/views/options/fonts_languages_window_view.h" 35 #include "chrome/browser/views/options/fonts_languages_window_view.h"
36 #include "chrome/browser/views/page_info_window.h" 36 #include "chrome/browser/views/page_info_window.h"
37 #include "chrome/common/clipboard_service.h" 37 #include "chrome/common/clipboard_service.h"
38 #include "chrome/common/win_util.h" 38 #include "chrome/common/win_util.h"
39 #endif 39 #endif
40 40
41 RenderViewContextMenuController::RenderViewContextMenuController( 41 RenderViewContextMenuController::RenderViewContextMenuController(
42 WebContents* source_web_contents, const ContextMenuParams& params) 42 WebContents* source_web_contents, const ContextMenuParams& params)
43 : source_web_contents_(source_web_contents), 43 : source_web_contents_(source_web_contents),
44 params_(params) { 44 params_(params) {
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 // Don't enable the web inspector if JavaScript is disabled 536 // Don't enable the web inspector if JavaScript is disabled
537 if (id == IDS_CONTENT_CONTEXT_INSPECTELEMENT) { 537 if (id == IDS_CONTENT_CONTEXT_INSPECTELEMENT) {
538 PrefService* prefs = source_web_contents_->profile()->GetPrefs(); 538 PrefService* prefs = source_web_contents_->profile()->GetPrefs();
539 if (!prefs->GetBoolean(prefs::kWebKitJavascriptEnabled) || 539 if (!prefs->GetBoolean(prefs::kWebKitJavascriptEnabled) ||
540 command_line.HasSwitch(switches::kDisableJavaScript)) 540 command_line.HasSwitch(switches::kDisableJavaScript))
541 return false; 541 return false;
542 } 542 }
543 543
544 return true; 544 return true;
545 } 545 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.cc ('k') | chrome/chrome.xcodeproj/project.pbxproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698