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

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

Issue 28171: Wire up resource bundles on the mac:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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) 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 "temp_scaffolding_stubs.h" 5 #include "temp_scaffolding_stubs.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 23 matching lines...) Expand all
34 #include "chrome/browser/shell_integration.h" 34 #include "chrome/browser/shell_integration.h"
35 #include "chrome/browser/tab_contents/web_contents.h" 35 #include "chrome/browser/tab_contents/web_contents.h"
36 #include "chrome/common/chrome_constants.h" 36 #include "chrome/common/chrome_constants.h"
37 #include "chrome/common/chrome_paths.h" 37 #include "chrome/common/chrome_paths.h"
38 #include "chrome/common/chrome_plugin_util.h" 38 #include "chrome/common/chrome_plugin_util.h"
39 #include "chrome/common/gfx/chrome_font.h" 39 #include "chrome/common/gfx/chrome_font.h"
40 #include "chrome/common/gfx/text_elider.h" 40 #include "chrome/common/gfx/text_elider.h"
41 #include "chrome/common/notification_service.h" 41 #include "chrome/common/notification_service.h"
42 #include "chrome/common/pref_service.h" 42 #include "chrome/common/pref_service.h"
43 #include "chrome/common/process_watcher.h" 43 #include "chrome/common/process_watcher.h"
44 #include "chrome/common/resource_bundle.h"
45 #include "net/url_request/url_request_context.h" 44 #include "net/url_request/url_request_context.h"
46 #include "webkit/glue/webcursor.h" 45 #include "webkit/glue/webcursor.h"
47 #include "webkit/glue/webkit_glue.h" 46 #include "webkit/glue/webkit_glue.h"
48 47
49 //-------------------------------------------------------------------------- 48 //--------------------------------------------------------------------------
50 49
51 bool ShellIntegration::SetAsDefaultBrowser() { 50 bool ShellIntegration::SetAsDefaultBrowser() {
52 NOTIMPLEMENTED(); 51 NOTIMPLEMENTED();
53 return true; 52 return true;
54 } 53 }
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 const std::wstring& message_text, 263 const std::wstring& message_text,
265 IPC::Message* reply_msg) { 264 IPC::Message* reply_msg) {
266 NOTIMPLEMENTED(); 265 NOTIMPLEMENTED();
267 } 266 }
268 267
269 //-------------------------------------------------------------------------- 268 //--------------------------------------------------------------------------
270 269
271 void RunRepostFormWarningDialog(NavigationController*) { 270 void RunRepostFormWarningDialog(NavigationController*) {
272 } 271 }
273 272
274 #if defined(OS_MACOSX)
275 ResourceBundle* ResourceBundle::g_shared_instance_ = NULL;
276
277 // GetBitmapNamed() will leak, but there's no way around it for stubs.
278 SkBitmap* ResourceBundle::GetBitmapNamed(int) {
279 NOTIMPLEMENTED();
280 return new SkBitmap();
281 }
282 ResourceBundle::ResourceBundle() { }
283 ResourceBundle& ResourceBundle::GetSharedInstance() {
284 NOTIMPLEMENTED();
285 if (!g_shared_instance_)
286 g_shared_instance_ = new ResourceBundle;
287 return *g_shared_instance_;
288 }
289
290 StringPiece ResourceBundle::GetRawDataResource(int resource_id) {
291 NOTIMPLEMENTED();
292 return StringPiece();
293 }
294
295 std::string ResourceBundle::GetDataResource(int resource_id) {
296 NOTIMPLEMENTED();
297 return "";
298 }
299
300 void ResourceBundle::CleanupSharedInstance() {
301 NOTIMPLEMENTED();
302 }
303
304 bool ResourceBundle::LoadImageResourceBytes(int resource_id,
305 std::vector<unsigned char>* bytes) {
306 NOTIMPLEMENTED();
307 return false;
308 }
309 #endif
310
311 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, 273 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info,
312 URLRequest* request, 274 URLRequest* request,
313 MessageLoop* ui_loop) { 275 MessageLoop* ui_loop) {
314 NOTIMPLEMENTED(); 276 NOTIMPLEMENTED();
315 return NULL; 277 return NULL;
316 } 278 }
317 279
318 void ProcessWatcher::EnsureProcessTerminated(int) { 280 void ProcessWatcher::EnsureProcessTerminated(int) {
319 NOTIMPLEMENTED(); 281 NOTIMPLEMENTED();
320 } 282 }
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 NOTIMPLEMENTED(); 362 NOTIMPLEMENTED();
401 return NULL; 363 return NULL;
402 } 364 }
403 365
404 views::Window* CreateInputWindow(gfx::NativeWindow parent_hwnd, 366 views::Window* CreateInputWindow(gfx::NativeWindow parent_hwnd,
405 InputWindowDelegate* delegate) { 367 InputWindowDelegate* delegate) {
406 NOTIMPLEMENTED(); 368 NOTIMPLEMENTED();
407 return new views::Window(); 369 return new views::Window();
408 } 370 }
409 371
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698