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

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

Issue 123001: Move renderer_preferences.h from chrome/browser into chrome/common. We (Closed)
Patch Set: include deps Created 11 years, 6 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
« no previous file with comments | « chrome/renderer/render_view.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "app/gfx/color_utils.h" 11 #include "app/gfx/color_utils.h"
12 #include "app/gfx/favicon_size.h" 12 #include "app/gfx/favicon_size.h"
13 #include "app/l10n_util.h" 13 #include "app/l10n_util.h"
14 #include "app/message_box_flags.h" 14 #include "app/message_box_flags.h"
15 #include "app/resource_bundle.h" 15 #include "app/resource_bundle.h"
16 #include "base/command_line.h" 16 #include "base/command_line.h"
17 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
18 #include "base/field_trial.h" 18 #include "base/field_trial.h"
19 #include "base/gfx/png_encoder.h" 19 #include "base/gfx/png_encoder.h"
20 #include "base/gfx/native_widget_types.h" 20 #include "base/gfx/native_widget_types.h"
21 #include "base/string_piece.h" 21 #include "base/string_piece.h"
22 #include "base/string_util.h" 22 #include "base/string_util.h"
23 #include "build/build_config.h" 23 #include "build/build_config.h"
24 #include "chrome/browser/renderer_preferences.h"
25 #include "chrome/common/bindings_policy.h" 24 #include "chrome/common/bindings_policy.h"
26 #include "chrome/common/chrome_switches.h" 25 #include "chrome/common/chrome_switches.h"
27 #include "chrome/common/chrome_constants.h" 26 #include "chrome/common/chrome_constants.h"
28 #include "chrome/common/jstemplate_builder.h" 27 #include "chrome/common/jstemplate_builder.h"
29 #include "chrome/common/page_zoom.h" 28 #include "chrome/common/page_zoom.h"
30 #include "chrome/common/render_messages.h" 29 #include "chrome/common/render_messages.h"
30 #include "chrome/common/renderer_preferences.h"
31 #include "chrome/common/thumbnail_score.h" 31 #include "chrome/common/thumbnail_score.h"
32 #include "chrome/common/url_constants.h" 32 #include "chrome/common/url_constants.h"
33 #include "chrome/renderer/about_handler.h" 33 #include "chrome/renderer/about_handler.h"
34 #include "chrome/renderer/audio_message_filter.h" 34 #include "chrome/renderer/audio_message_filter.h"
35 #include "chrome/renderer/debug_message_handler.h" 35 #include "chrome/renderer/debug_message_handler.h"
36 #include "chrome/renderer/devtools_agent.h" 36 #include "chrome/renderer/devtools_agent.h"
37 #include "chrome/renderer/devtools_client.h" 37 #include "chrome/renderer/devtools_client.h"
38 #include "chrome/renderer/extensions/extension_process_bindings.h" 38 #include "chrome/renderer/extensions/extension_process_bindings.h"
39 #include "chrome/renderer/localized_error.h" 39 #include "chrome/renderer/localized_error.h"
40 #include "chrome/renderer/media/audio_renderer_impl.h" 40 #include "chrome/renderer/media/audio_renderer_impl.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 devtools_agent_(NULL), 187 devtools_agent_(NULL),
188 devtools_client_(NULL), 188 devtools_client_(NULL),
189 history_back_list_count_(0), 189 history_back_list_count_(0),
190 history_forward_list_count_(0), 190 history_forward_list_count_(0),
191 has_unload_listener_(false), 191 has_unload_listener_(false),
192 decrement_shared_popup_at_destruction_(false), 192 decrement_shared_popup_at_destruction_(false),
193 form_field_autofill_request_id_(0), 193 form_field_autofill_request_id_(0),
194 popup_notification_visible_(false), 194 popup_notification_visible_(false),
195 delay_seconds_for_form_state_sync_(kDefaultDelaySecondsForFormStateSync), 195 delay_seconds_for_form_state_sync_(kDefaultDelaySecondsForFormStateSync),
196 preferred_width_(0), 196 preferred_width_(0),
197 send_preferred_width_changes_(false), 197 send_preferred_width_changes_(false) {
198 renderer_preferences_(*(new RendererPreferences)) {
199 } 198 }
200 199
201 RenderView::~RenderView() { 200 RenderView::~RenderView() {
202 if (decrement_shared_popup_at_destruction_) 201 if (decrement_shared_popup_at_destruction_)
203 shared_popup_counter_->data--; 202 shared_popup_counter_->data--;
204 203
205 // Clear any back-pointers that might still be held by plugins. 204 // Clear any back-pointers that might still be held by plugins.
206 PluginDelegateList::iterator it = plugin_delegates_.begin(); 205 PluginDelegateList::iterator it = plugin_delegates_.begin();
207 while (it != plugin_delegates_.end()) { 206 while (it != plugin_delegates_.end()) {
208 (*it)->DropRenderView(); 207 (*it)->DropRenderView();
(...skipping 2631 matching lines...) Expand 10 before | Expand all | Expand 10 after
2840 // If id is valid, alert the browser side that an accessibility focus change 2839 // If id is valid, alert the browser side that an accessibility focus change
2841 // occurred. 2840 // occurred.
2842 if (acc_obj_id >= 0) 2841 if (acc_obj_id >= 0)
2843 Send(new ViewHostMsg_AccessibilityFocusChange(routing_id_, acc_obj_id)); 2842 Send(new ViewHostMsg_AccessibilityFocusChange(routing_id_, acc_obj_id));
2844 2843
2845 #else // defined(OS_WIN) 2844 #else // defined(OS_WIN)
2846 // TODO(port): accessibility not yet implemented 2845 // TODO(port): accessibility not yet implemented
2847 NOTIMPLEMENTED(); 2846 NOTIMPLEMENTED();
2848 #endif 2847 #endif
2849 } 2848 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698