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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 6289009: [Mac] Implement the system dictionary popup by implementing NSTextInput methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Clang Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/renderer/chrome_content_renderer_client.h" 5 #include "chrome/renderer/chrome_content_renderer_client.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "chrome/renderer/page_load_histograms.h" 47 #include "chrome/renderer/page_load_histograms.h"
48 #include "chrome/renderer/print_web_view_helper.h" 48 #include "chrome/renderer/print_web_view_helper.h"
49 #include "chrome/renderer/renderer_histogram_snapshots.h" 49 #include "chrome/renderer/renderer_histogram_snapshots.h"
50 #include "chrome/renderer/safe_browsing/malware_dom_details.h" 50 #include "chrome/renderer/safe_browsing/malware_dom_details.h"
51 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" 51 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h"
52 #include "chrome/renderer/search_extension.h" 52 #include "chrome/renderer/search_extension.h"
53 #include "chrome/renderer/searchbox.h" 53 #include "chrome/renderer/searchbox.h"
54 #include "chrome/renderer/searchbox_extension.h" 54 #include "chrome/renderer/searchbox_extension.h"
55 #include "chrome/renderer/spellchecker/spellcheck.h" 55 #include "chrome/renderer/spellchecker/spellcheck.h"
56 #include "chrome/renderer/spellchecker/spellcheck_provider.h" 56 #include "chrome/renderer/spellchecker/spellcheck_provider.h"
57 #include "chrome/renderer/text_input_client_observer.h"
57 #include "chrome/renderer/translate_helper.h" 58 #include "chrome/renderer/translate_helper.h"
58 #include "chrome/renderer/visitedlink_slave.h" 59 #include "chrome/renderer/visitedlink_slave.h"
59 #include "content/common/view_messages.h" 60 #include "content/common/view_messages.h"
60 #include "content/renderer/render_thread.h" 61 #include "content/renderer/render_thread.h"
61 #include "content/renderer/render_view.h" 62 #include "content/renderer/render_view.h"
62 #include "grit/generated_resources.h" 63 #include "grit/generated_resources.h"
63 #include "grit/locale_settings.h" 64 #include "grit/locale_settings.h"
64 #include "grit/renderer_resources.h" 65 #include "grit/renderer_resources.h"
65 #include "net/base/net_errors.h" 66 #include "net/base/net_errors.h"
66 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" 67 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 186
186 new ContentSettingsObserver(render_view); 187 new ContentSettingsObserver(render_view);
187 new DevToolsAgent(render_view); 188 new DevToolsAgent(render_view);
188 new ExtensionHelper(render_view, extension_dispatcher_.get()); 189 new ExtensionHelper(render_view, extension_dispatcher_.get());
189 new PageLoadHistograms(render_view, histogram_snapshots_.get()); 190 new PageLoadHistograms(render_view, histogram_snapshots_.get());
190 new PrintWebViewHelper(render_view); 191 new PrintWebViewHelper(render_view);
191 new SearchBox(render_view); 192 new SearchBox(render_view);
192 new SpellCheckProvider(render_view, spellcheck_.get()); 193 new SpellCheckProvider(render_view, spellcheck_.get());
193 new safe_browsing::MalwareDOMDetails(render_view); 194 new safe_browsing::MalwareDOMDetails(render_view);
194 195
196 #if defined(OS_MACOSX)
197 new TextInputClientObserver(render_view);
198 #endif // defined(OS_MACOSX)
199
195 PasswordAutofillManager* password_autofill_manager = 200 PasswordAutofillManager* password_autofill_manager =
196 new PasswordAutofillManager(render_view); 201 new PasswordAutofillManager(render_view);
197 AutofillAgent* autofill_agent = new AutofillAgent(render_view, 202 AutofillAgent* autofill_agent = new AutofillAgent(render_view,
198 password_autofill_manager); 203 password_autofill_manager);
199 PageClickTracker* page_click_tracker = new PageClickTracker(render_view); 204 PageClickTracker* page_click_tracker = new PageClickTracker(render_view);
200 // Note that the order of insertion of the listeners is important. 205 // Note that the order of insertion of the listeners is important.
201 // The password_autocomplete_manager takes the first shot at processing the 206 // The password_autocomplete_manager takes the first shot at processing the
202 // notification and can stop the propagation. 207 // notification and can stop the propagation.
203 page_click_tracker->AddListener(password_autofill_manager); 208 page_click_tracker->AddListener(password_autofill_manager);
204 page_click_tracker->AddListener(autofill_agent); 209 page_click_tracker->AddListener(autofill_agent);
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 if (old_url.is_empty() && frame->opener()) 550 if (old_url.is_empty() && frame->opener())
546 old_url = frame->opener()->url(); 551 old_url = frame->opener()->url();
547 552
548 bool old_url_is_hosted_app = extensions->GetByURL(old_url) && 553 bool old_url_is_hosted_app = extensions->GetByURL(old_url) &&
549 !extensions->GetByURL(old_url)->web_extent().is_empty(); 554 !extensions->GetByURL(old_url)->web_extent().is_empty();
550 return !extensions->InSameExtent(old_url, new_url) && 555 return !extensions->InSameExtent(old_url, new_url) &&
551 !old_url_is_hosted_app; 556 !old_url_is_hosted_app;
552 } 557 }
553 558
554 } // namespace chrome 559 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/text_input_client_messages.cc ('k') | chrome/renderer/text_input_client_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698