Skip to content

Commit

Permalink
Remove the temporary scaffolding stubs.
Browse files Browse the repository at this point in the history
They have served they purpose well, but now it's time to retire.
It's one of the things that draggen in the bad dependency of chrome/common
on chrome/browser, and is sufficiently small now to stub things out individually.

TEST=none
BUG=none

Review URL: http://codereview.chromium.org/593037

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38639 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
phajdan.jr@chromium.org committed Feb 10, 2010
1 parent ef12239 commit e06131d
Show file tree
Hide file tree
Showing 26 changed files with 303 additions and 278 deletions.
1 change: 0 additions & 1 deletion chrome/PRESUBMIT.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
r'bloom_filter\.cc$',
# Bogus ifdef tricks
r'renderer_webkitclient_impl\.cc$',
r'temp_scaffolding_stubs\.h$',
# Lines > 100 chars
r'gcapi\.cc$',
)
Expand Down
1 change: 0 additions & 1 deletion chrome/browser/app_controller_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/browser/profile_manager.h"
#include "chrome/common/temp_scaffolding_stubs.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
#include "net/base/net_util.h"
Expand Down
43 changes: 41 additions & 2 deletions chrome/browser/automation/automation_provider_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
if (window) {
NSRect new_bounds = NSRectFromCGRect(bounds.ToCGRect());

// This is likely incorrect for a multiple-monitor setup; OK because this is
// used only for testing purposes.
// This is likely incorrect for a multiple-monitor setup; OK because this
// is used only for testing purposes.
new_bounds.origin.y = [[window screen] frame].size.height -
new_bounds.origin.y - new_bounds.size.height;

Expand Down Expand Up @@ -67,6 +67,45 @@
NOTIMPLEMENTED();
}

void AutomationProvider::GetAutocompleteEditText(
int autocomplete_edit_handle, bool* success, std::wstring* text) {
*success = false;
NOTIMPLEMENTED();
}

void AutomationProvider::SetAutocompleteEditText(int autocomplete_edit_handle,
const std::wstring& text,
bool* success) {
*success = false;
NOTIMPLEMENTED();
}

void AutomationProvider::AutocompleteEditIsQueryInProgress(
int autocomplete_edit_handle, bool* success, bool* query_in_progress) {
*success = false;
NOTIMPLEMENTED();
}

void AutomationProvider::AutocompleteEditGetMatches(
int autocomplete_edit_handle, bool* success,
std::vector<AutocompleteMatchData>* matches) {
*success = false;
NOTIMPLEMENTED();
}

void AutomationProvider::OnMessageFromExternalHost(int handle,
const std::string& message,
const std::string& origin,
const std::string& target) {
NOTIMPLEMENTED();
}

void AutomationProvider::GetAutocompleteEditForBrowser(
int browser_handle, bool* success, int* autocomplete_edit_handle) {
*success = false;
NOTIMPLEMENTED();
}

void AutomationProvider::SetInitialFocus(const IPC::Message& message,
int handle, bool reverse) {
NOTIMPLEMENTED();
Expand Down
3 changes: 0 additions & 3 deletions chrome/browser/bookmarks/bookmark_drag_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@
#include "base/string16.h"
#include "googleurl/src/gurl.h"

// TODO(port): Port this file.
#if defined(TOOLKIT_VIEWS)
#include "app/os_exchange_data.h"
#else
#include "chrome/common/temp_scaffolding_stubs.h"
#endif

class BookmarkModel;
Expand Down
5 changes: 1 addition & 4 deletions chrome/browser/browser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "chrome/browser/character_encoding.h"
#include "chrome/browser/debugger/devtools_manager.h"
#include "chrome/browser/debugger/devtools_window.h"
#include "chrome/browser/dock_info.h"
#include "chrome/browser/dom_ui/filebrowse_ui.h"
#include "chrome/browser/download/download_item_model.h"
#include "chrome/browser/download/download_manager.h"
Expand Down Expand Up @@ -100,10 +101,6 @@
#include "chrome/common/child_process_host.h"
#endif // OS_WIN

#if !defined(OS_MACOSX)
#include "chrome/browser/dock_info.h"
#endif

#if defined(OS_MACOSX)
#include "chrome/browser/cocoa/find_pasteboard.h"
#endif
Expand Down
1 change: 1 addition & 0 deletions chrome/browser/browser_list_gtk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <gtk/gtk.h>

// static
void BrowserList::AllBrowsersClosed() {
// Close non-browser windows.
GList* window_list = gtk_window_list_toplevels();
Expand Down
9 changes: 9 additions & 0 deletions chrome/browser/browser_list_stub.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/browser_list.h"

// static
void BrowserList::AllBrowsersClosed() {
}
12 changes: 12 additions & 0 deletions chrome/browser/browser_list_win.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/browser_list.h"

#include "views/window/window.h"

// static
void BrowserList::AllBrowsersClosed() {
views::Window::CloseAllSecondaryWindows();
}
8 changes: 1 addition & 7 deletions chrome/browser/browser_process_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "chrome/browser/net/sqlite_persistent_cookie_store.h"
#include "chrome/browser/notifications/notification_ui_manager.h"
#include "chrome/browser/plugin_service.h"
#include "chrome/browser/printing/print_job_manager.h"
#include "chrome/browser/profile_manager.h"
#include "chrome/browser/renderer_host/render_process_host.h"
#include "chrome/browser/renderer_host/resource_dispatcher_host.h"
Expand All @@ -50,13 +51,6 @@
#include "views/focus/view_storage.h"
#endif

#if defined(OS_LINUX)
// TODO(port): get rid of this.
#include "chrome/common/temp_scaffolding_stubs.h"
#else
#include "chrome/browser/printing/print_job_manager.h"
#endif

#if defined(IPC_MESSAGE_LOG_ENABLED)
#include "chrome/common/plugin_messages.h"
#include "chrome/common/render_messages.h"
Expand Down
1 change: 0 additions & 1 deletion chrome/browser/cocoa/browser_window_cocoa.mm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include "chrome/common/notification_service.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/common/temp_scaffolding_stubs.h"
#include "chrome/browser/profile.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
Expand Down
7 changes: 7 additions & 0 deletions chrome/browser/cocoa/font_language_settings_controller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#import "base/mac_util.h"
#include "base/sys_string_conversions.h"
#include "chrome/browser/character_encoding.h"
#include "chrome/browser/fonts_languages_window.h"
#include "chrome/browser/profile.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
Expand All @@ -16,6 +17,12 @@
NSString* const kCharacterInfoName = @"name";
NSString* const kCharacterInfoID = @"id";

void ShowFontsLanguagesWindow(gfx::NativeWindow window,
FontsLanguagesPage page,
Profile* profile) {
NOTIMPLEMENTED();
}

@interface FontLanguageSettingsController (Private)
- (void)updateDisplayField:(NSTextField*)field withFont:(NSFont*)font;
@end
Expand Down
17 changes: 17 additions & 0 deletions chrome/browser/dock_info_mac.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/dock_info.h"

#include "base/logging.h"

bool DockInfo::GetNewWindowBounds(gfx::Rect* new_window_bounds,
bool* maximize_new_window) const {
// TODO(pinkerton): Implement DockInfo, http://crbug.com/9274.
return true;
}

void DockInfo::AdjustOtherWindowBounds() const {
// TODO(pinkerton): Implement DockInfo, http://crbug.com/9274.
}
13 changes: 13 additions & 0 deletions chrome/browser/jankometer_mac.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/jankometer.h"

void InstallJankometer(const CommandLine& parsed_command_line) {
// TODO(port): Implement jankometer, http://crbug.com/8077
}

void UninstallJankometer() {
// TODO(port): Implement jankometer, http://crbug.com/8077
}
6 changes: 2 additions & 4 deletions chrome/browser/metrics/metrics_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,8 @@
#include "base/rand_util.h"
#endif

#if defined(OS_POSIX)
// TODO(port): Move these headers above as they are ported.
#include "chrome/common/temp_scaffolding_stubs.h"
#else
// TODO(port): port browser_distribution.h.
#if !defined(OS_POSIX)
#include "chrome/installer/util/browser_distribution.h"
#endif

Expand Down
17 changes: 17 additions & 0 deletions chrome/browser/printing/print_job_linux.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/printing/print_job.h"

#include "base/logging.h"
#include "chrome/browser/printing/print_job_worker.h"
#include "printing/printed_document.h"

namespace printing {

PrintJob::PrintJob() : ui_message_loop_(NULL) {
NOTIMPLEMENTED();
}

} // namespace printing
41 changes: 41 additions & 0 deletions chrome/browser/printing/print_job_manager_linux.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/printing/print_job_manager.h"

#include "base/logging.h"
#include "chrome/browser/printing/print_job.h"
#include "chrome/browser/printing/printer_query.h"
#include "chrome/common/notification_type.h"

namespace printing {

PrintJobManager::PrintJobManager() {
NOTIMPLEMENTED();
}

PrintJobManager::~PrintJobManager() {
NOTIMPLEMENTED();
}

void PrintJobManager::OnQuit() {
NOTIMPLEMENTED();
}

void PrintJobManager::QueuePrinterQuery(PrinterQuery* job) {
NOTIMPLEMENTED();
}

void PrintJobManager::PopPrinterQuery(int document_cookie,
scoped_refptr<PrinterQuery>* job) {
NOTIMPLEMENTED();
}

void PrintJobManager::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
NOTIMPLEMENTED();
}

} // namespace printing
58 changes: 58 additions & 0 deletions chrome/browser/printing/print_view_manager_linux.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/printing/print_view_manager.h"

#include <string>

#include "base/logging.h"
#include "googleurl/src/gurl.h"
#include "chrome/browser/printing/print_job.h"
#include "chrome/common/notification_type.h"

namespace printing {

PrintViewManager::PrintViewManager(TabContents& owner) : owner_(owner) {
NOTIMPLEMENTED();
}

PrintViewManager::~PrintViewManager() {
NOTIMPLEMENTED();
}

void PrintViewManager::Stop() {
NOTIMPLEMENTED();
}

bool PrintViewManager::OnRenderViewGone(RenderViewHost* render_view_host) {
NOTIMPLEMENTED();
return true;
}

std::wstring PrintViewManager::RenderSourceName() {
NOTIMPLEMENTED();
return std::wstring();
}

GURL PrintViewManager::RenderSourceUrl() {
NOTIMPLEMENTED();
return GURL();
}

void PrintViewManager::DidGetPrintedPagesCount(int cookie, int number_pages) {
NOTIMPLEMENTED();
}

void PrintViewManager::DidPrintPage(
const ViewHostMsg_DidPrintPage_Params& params) {
NOTIMPLEMENTED();
}

void PrintViewManager::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
NOTIMPLEMENTED();
}

} // namespace printing
Loading

0 comments on commit e06131d

Please sign in to comment.