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

Side by Side Diff: chrome/common/temp_scaffolding_stubs.cc

Issue 340052: Clean up temp scaffolding stubs some. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: chrome.gyp Created 11 years, 1 month 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
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.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/common/temp_scaffolding_stubs.h" 5 #include "chrome/common/temp_scaffolding_stubs.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/gfx/rect.h" 9 #include "base/gfx/rect.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "chrome/browser/first_run.h"
12 #include "chrome/browser/rlz/rlz.h"
13
14 #if defined(OS_LINUX)
15 #include "chrome/browser/dock_info.h"
16 #include "chrome/common/render_messages.h"
17 #endif
18
19 #if defined(OS_MACOSX)
20 #include "chrome/browser/automation/automation_provider.h" 11 #include "chrome/browser/automation/automation_provider.h"
21 #include "chrome/browser/browser_list.h" 12 #include "chrome/browser/browser_list.h"
22 #include "chrome/browser/fonts_languages_window.h" 13 #include "chrome/browser/fonts_languages_window.h"
23 #include "chrome/browser/memory_details.h" 14 #include "chrome/browser/memory_details.h"
24 #endif
25
26 #if defined(TOOLKIT_VIEWS)
27 #include "chrome/browser/download/download_request_manager.h"
28 #include "chrome/browser/tab_contents/constrained_window.h"
29 #endif
30
31 class TabContents;
32 15
33 //-------------------------------------------------------------------------- 16 //--------------------------------------------------------------------------
34 17
35 #if defined(OS_MACOSX)
36 void AutomationProvider::GetAutocompleteEditForBrowser( 18 void AutomationProvider::GetAutocompleteEditForBrowser(
37 int browser_handle, 19 int browser_handle,
38 bool* success, 20 bool* success,
39 int* autocomplete_edit_handle) { 21 int* autocomplete_edit_handle) {
40 *success = false; 22 *success = false;
41 NOTIMPLEMENTED(); 23 NOTIMPLEMENTED();
42 } 24 }
43 25
44 void AutomationProvider::GetAutocompleteEditText(int autocomplete_edit_handle, 26 void AutomationProvider::GetAutocompleteEditText(int autocomplete_edit_handle,
45 bool* success, 27 bool* success,
(...skipping 24 matching lines...) Expand all
70 *success = false; 52 *success = false;
71 NOTIMPLEMENTED(); 53 NOTIMPLEMENTED();
72 } 54 }
73 55
74 void AutomationProvider::OnMessageFromExternalHost( 56 void AutomationProvider::OnMessageFromExternalHost(
75 int handle, const std::string& message, const std::string& origin, 57 int handle, const std::string& message, const std::string& origin,
76 const std::string& target) { 58 const std::string& target) {
77 NOTIMPLEMENTED(); 59 NOTIMPLEMENTED();
78 } 60 }
79 61
80 #endif // defined(OS_MACOSX)
81
82 //--------------------------------------------------------------------------
83 // static
84 bool Upgrade::IsBrowserAlreadyRunning() {
85 // http://code.google.com/p/chromium/issues/detail?id=9295
86 return false;
87 }
88
89 // static
90 bool Upgrade::RelaunchChromeBrowser(const CommandLine& command_line) {
91 // http://code.google.com/p/chromium/issues/detail?id=9295
92 return true;
93 }
94
95 // static
96 bool Upgrade::SwapNewChromeExeIfPresent() {
97 // http://code.google.com/p/chromium/issues/detail?id=9295
98 return true;
99 }
100
101 // static
102 Upgrade::TryResult ShowTryChromeDialog(size_t version) {
103 return Upgrade::TD_NOT_NOW;
104 }
105
106 //--------------------------------------------------------------------------
107
108 #if defined(OS_MACOSX)
109 void InstallJankometer(const CommandLine&) { 62 void InstallJankometer(const CommandLine&) {
110 // http://code.google.com/p/chromium/issues/detail?id=8077 63 // http://code.google.com/p/chromium/issues/detail?id=8077
111 } 64 }
112 65
113 void UninstallJankometer() { 66 void UninstallJankometer() {
114 // http://code.google.com/p/chromium/issues/detail?id=8077 67 // http://code.google.com/p/chromium/issues/detail?id=8077
115 } 68 }
116 #endif 69 MemoryDetails::MemoryDetails() {
117 70
118 //--------------------------------------------------------------------------
119
120 void RLZTracker::CleanupRlz() {
121 // http://code.google.com/p/chromium/issues/detail?id=8152
122 }
123
124 bool RLZTracker::GetAccessPointRlz(AccessPoint point, std::wstring* rlz) {
125 // http://code.google.com/p/chromium/issues/detail?id=8152
126 return false;
127 }
128
129 bool RLZTracker::RecordProductEvent(Product product, AccessPoint point,
130 Event event) {
131 // http://code.google.com/p/chromium/issues/detail?id=8152
132 return false;
133 }
134
135 //--------------------------------------------------------------------------
136
137 #if defined(OS_MACOSX)
138 MemoryDetails::MemoryDetails() {
139 NOTIMPLEMENTED(); 71 NOTIMPLEMENTED();
140 process_data_.push_back(ProcessData()); 72 process_data_.push_back(ProcessData());
141 } 73 }
142 74
143 void MemoryDetails::StartFetch() { 75 void MemoryDetails::StartFetch() {
144 NOTIMPLEMENTED(); 76 NOTIMPLEMENTED();
145 77
146 // Other implementations implicitly own the object by passing it to 78 // Other implementations implicitly own the object by passing it to
147 // IO and UI tasks. This code is called from AboutMemoryHandler's 79 // IO and UI tasks. This code is called from AboutMemoryHandler's
148 // constructor, so there is no reference to Release(), yet. 80 // constructor, so there is no reference to Release(), yet.
149 MessageLoop::current()->PostTask( 81 MessageLoop::current()->PostTask(
150 FROM_HERE, NewRunnableMethod(this, &MemoryDetails::OnDetailsAvailable)); 82 FROM_HERE, NewRunnableMethod(this, &MemoryDetails::OnDetailsAvailable));
151 } 83 }
152 #endif
153 84
154 #if !defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX)
155 namespace download_util {
156
157 void DragDownload(const DownloadItem* download,
158 SkBitmap* icon,
159 gfx::NativeView view) {
160 NOTIMPLEMENTED();
161 }
162
163 } // namespace download_util
164 #endif
165
166 #if defined(OS_MACOSX)
167 void BrowserList::AllBrowsersClosed() { 85 void BrowserList::AllBrowsersClosed() {
168 // TODO(port): Close any dependent windows if necessary when the last browser 86 // TODO(port): Close any dependent windows if necessary when the last browser
169 // window is closed. 87 // window is closed.
170 } 88 }
171 89
172 //-------------------------------------------------------------------------- 90 //--------------------------------------------------------------------------
173 91
174 bool DockInfo::GetNewWindowBounds(gfx::Rect* new_window_bounds, 92 bool DockInfo::GetNewWindowBounds(gfx::Rect* new_window_bounds,
175 bool* maximize_new_window) const { 93 bool* maximize_new_window) const {
176 // TODO(pinkerton): Implement on Mac. 94 // TODO(pinkerton): Implement on Mac.
177 // http://crbug.com/9274 95 // http://crbug.com/9274
178 return true; 96 return true;
179 } 97 }
180 98
181 void DockInfo::AdjustOtherWindowBounds() const { 99 void DockInfo::AdjustOtherWindowBounds() const {
182 // TODO(pinkerton): Implement on Mac. 100 // TODO(pinkerton): Implement on Mac.
183 // http://crbug.com/9274 101 // http://crbug.com/9274
184 } 102 }
185 #endif
186 103
187 //------------------------------------------------------------------------------ 104 //------------------------------------------------------------------------------
188 105
189 #if defined(OS_MACOSX)
190 void ShowFontsLanguagesWindow(gfx::NativeWindow window, 106 void ShowFontsLanguagesWindow(gfx::NativeWindow window,
191 FontsLanguagesPage page, 107 FontsLanguagesPage page,
192 Profile* profile) { 108 Profile* profile) {
193 NOTIMPLEMENTED(); 109 NOTIMPLEMENTED();
194 } 110 }
195 #endif
196
OLDNEW
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698