| OLD | NEW |
| 1 // Copyright (c) 2006-2008 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/browser/dom_ui/dom_ui.h" | 5 #include "chrome/browser/dom_ui/dom_ui.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/json_reader.h" | 8 #include "base/json_reader.h" |
| 9 #include "base/json_writer.h" | 9 #include "base/json_writer.h" |
| 10 #include "base/stl_util-inl.h" | 10 #include "base/stl_util-inl.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profile.h" |
| 14 #include "chrome/browser/tab_contents/tab_contents.h" | 14 #include "chrome/browser/tab_contents/tab_contents.h" |
| 15 #include "chrome/browser/tab_contents/tab_contents_view.h" | 15 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| 16 #include "chrome/common/bindings_policy.h" | 16 #include "chrome/common/bindings_policy.h" |
| 17 | 17 |
| 18 DOMUI::DOMUI(TabContents* contents) | 18 DOMUI::DOMUI(TabContents* contents) |
| 19 : hide_favicon_(false), | 19 : hide_favicon_(false), |
| 20 force_bookmark_bar_visible_(false), | 20 force_bookmark_bar_visible_(false), |
| 21 force_extension_shelf_visible_(false), |
| 21 focus_location_bar_by_default_(false), | 22 focus_location_bar_by_default_(false), |
| 22 should_hide_url_(false), | 23 should_hide_url_(false), |
| 23 link_transition_type_(PageTransition::LINK), | 24 link_transition_type_(PageTransition::LINK), |
| 24 bindings_(BindingsPolicy::DOM_UI), | 25 bindings_(BindingsPolicy::DOM_UI), |
| 25 tab_contents_(contents) { | 26 tab_contents_(contents) { |
| 26 } | 27 } |
| 27 | 28 |
| 28 DOMUI::~DOMUI() { | 29 DOMUI::~DOMUI() { |
| 29 STLDeleteContainerPairSecondPointers(message_callbacks_.begin(), | 30 STLDeleteContainerPairSecondPointers(message_callbacks_.begin(), |
| 30 message_callbacks_.end()); | 31 message_callbacks_.end()); |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 list_member->GetType() == Value::TYPE_STRING) { | 182 list_member->GetType() == Value::TYPE_STRING) { |
| 182 const StringValue* string_value = | 183 const StringValue* string_value = |
| 183 static_cast<const StringValue*>(list_member); | 184 static_cast<const StringValue*>(list_member); |
| 184 std::wstring wstring_value; | 185 std::wstring wstring_value; |
| 185 string_value->GetAsString(&wstring_value); | 186 string_value->GetAsString(&wstring_value); |
| 186 return wstring_value; | 187 return wstring_value; |
| 187 } | 188 } |
| 188 } | 189 } |
| 189 return std::wstring(); | 190 return std::wstring(); |
| 190 } | 191 } |
| OLD | NEW |