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

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

Issue 596105: Bookmark Manager Drag and Drop backend.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/tab_contents/tab_contents.h" 5 #include "chrome/browser/tab_contents/tab_contents.h"
6 6
7 #include "app/gfx/text_elider.h" 7 #include "app/gfx/text_elider.h"
8 #include "app/l10n_util.h" 8 #include "app/l10n_util.h"
9 #include "app/resource_bundle.h" 9 #include "app/resource_bundle.h"
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 2049 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 form_field_history_manager_.reset(new FormFieldHistoryManager(this)); 2060 form_field_history_manager_.reset(new FormFieldHistoryManager(this));
2061 return form_field_history_manager_.get(); 2061 return form_field_history_manager_.get();
2062 } 2062 }
2063 2063
2064 RenderViewHostDelegate::AutoFill* TabContents::GetAutoFillDelegate() { 2064 RenderViewHostDelegate::AutoFill* TabContents::GetAutoFillDelegate() {
2065 if (autofill_manager_.get() == NULL) 2065 if (autofill_manager_.get() == NULL)
2066 autofill_manager_.reset(new AutoFillManager(this)); 2066 autofill_manager_.reset(new AutoFillManager(this));
2067 return autofill_manager_.get(); 2067 return autofill_manager_.get();
2068 } 2068 }
2069 2069
2070 RenderViewHostDelegate::BookmarkDrag* TabContents::GetBookmarkDragDelegate() {
2071 return bookmark_drag_;
2072 }
2073
2074 void TabContents::SetBookmarkDragDelegate(
2075 RenderViewHostDelegate::BookmarkDrag* bookmark_drag) {
2076 bookmark_drag_ = bookmark_drag;
2077 }
2078
2070 RendererPreferences TabContents::GetRendererPrefs(Profile* profile) const { 2079 RendererPreferences TabContents::GetRendererPrefs(Profile* profile) const {
2071 return renderer_preferences_; 2080 return renderer_preferences_;
2072 } 2081 }
2073 2082
2074 TabContents* TabContents::GetAsTabContents() { 2083 TabContents* TabContents::GetAsTabContents() {
2075 return this; 2084 return this;
2076 } 2085 }
2077 2086
2078 ViewType::Type TabContents::GetRenderViewType() const { 2087 ViewType::Type TabContents::GetRenderViewType() const {
2079 return ViewType::TAB_CONTENTS; 2088 return ViewType::TAB_CONTENTS;
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
2863 render_view_host()->JavaScriptMessageBoxClosed(reply_msg, success, prompt); 2872 render_view_host()->JavaScriptMessageBoxClosed(reply_msg, success, prompt);
2864 } 2873 }
2865 2874
2866 void TabContents::SetSuppressMessageBoxes(bool suppress_message_boxes) { 2875 void TabContents::SetSuppressMessageBoxes(bool suppress_message_boxes) {
2867 set_suppress_javascript_messages(suppress_message_boxes); 2876 set_suppress_javascript_messages(suppress_message_boxes);
2868 } 2877 }
2869 2878
2870 void TabContents::set_encoding(const std::string& encoding) { 2879 void TabContents::set_encoding(const std::string& encoding) {
2871 encoding_ = CharacterEncoding::GetCanonicalEncodingNameByAliasName(encoding); 2880 encoding_ = CharacterEncoding::GetCanonicalEncodingNameByAliasName(encoding);
2872 } 2881 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698