forked from sanyaade-mobiledev/chromium.src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http://crbug.com/93947 TEST=none R=sadrul TBR=jabdelmalek for the content/webkit stubs Review URL: http://codereview.chromium.org/7841012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99993 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
ben@chromium.org
committed
Sep 7, 2011
1 parent
a8ca1a9
commit 94fbaa4
Showing
45 changed files
with
1,295 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) 2011 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/automation/automation_provider.h" | ||
|
||
void AutomationProvider::WindowSimulateDrag( | ||
int handle, | ||
const std::vector<gfx::Point>& drag_path, | ||
int flags, | ||
bool press_escape_en_route, | ||
IPC::Message* reply_message) { | ||
} | ||
|
||
void AutomationProvider::PrintAsync(int tab_handle) { | ||
} | ||
|
51 changes: 51 additions & 0 deletions
51
chrome/browser/automation/testing_automation_provider_aura.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Copyright (c) 2011 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/automation/testing_automation_provider.h" | ||
|
||
#include "base/logging.h" | ||
|
||
void TestingAutomationProvider::ActivateWindow(int handle) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
void TestingAutomationProvider::IsWindowMaximized(int handle, | ||
bool* is_maximized, | ||
bool* success) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
void TestingAutomationProvider::TerminateSession(int handle, bool* success) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
void TestingAutomationProvider::GetWindowBounds(int handle, | ||
gfx::Rect* bounds, | ||
bool* success) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
void TestingAutomationProvider::SetWindowBounds(int handle, | ||
const gfx::Rect& bounds, | ||
bool* success) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
void TestingAutomationProvider::SetWindowVisible(int handle, | ||
bool visible, | ||
bool* result) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
void TestingAutomationProvider::GetWindowTitle(int handle, string16* text) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
// Copyright (c) 2011 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/first_run/first_run.h" | ||
|
||
#include "base/logging.h" | ||
#include "base/file_path.h" | ||
#include "chrome/browser/importer/importer_host.h" | ||
#include "chrome/browser/importer/importer_list.h" | ||
|
||
bool FirstRun::LaunchSetupWithParam(const std::string& param, | ||
const std::wstring& value, | ||
int* ret_code) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
return true; | ||
} | ||
|
||
bool FirstRun::WriteEULAtoTempFile(FilePath* eula_path) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
return true; | ||
} | ||
|
||
void FirstRun::DoDelayedInstallExtensions() { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
// static | ||
void FirstRun::PlatformSetup() { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
// static | ||
bool FirstRun::IsOrganicFirstRun() { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
return true; | ||
} | ||
|
||
// static | ||
FilePath FirstRun::MasterPrefsPath() { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
return FilePath(); | ||
} | ||
|
||
// static | ||
bool FirstRun::ImportSettings(Profile* profile, | ||
int importer_type, | ||
int items_to_import, | ||
const FilePath& import_bookmarks_path, | ||
bool skip_first_run_ui, | ||
gfx::NativeWindow parent_window) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
return false; | ||
} | ||
|
||
// static | ||
bool FirstRun::ImportSettings(Profile* profile, | ||
scoped_refptr<ImporterHost> importer_host, | ||
scoped_refptr<ImporterList> importer_list, | ||
int items_to_import) { | ||
return ImportSettings( | ||
profile, | ||
importer_list->GetSourceProfileAt(0).importer_type, | ||
items_to_import, | ||
FilePath(), | ||
false, | ||
NULL); | ||
} | ||
|
||
int FirstRun::ImportFromBrowser(Profile* profile, | ||
const CommandLine& cmdline) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Copyright (c) 2011 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/platform_util.h" | ||
|
||
#include "aura/window.h" | ||
#include "base/logging.h" | ||
|
||
namespace platform_util { | ||
|
||
void ShowItemInFolder(const FilePath& full_path) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
void OpenItem(const FilePath& full_path) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
void OpenExternal(const GURL& url) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
gfx::NativeWindow GetTopLevel(gfx::NativeView view) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
return NULL; | ||
} | ||
|
||
gfx::NativeView GetParent(gfx::NativeView view) { | ||
return view->parent(); | ||
} | ||
|
||
bool IsWindowActive(gfx::NativeWindow window) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
return false; | ||
} | ||
|
||
void ActivateWindow(gfx::NativeWindow window) { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
bool IsVisible(gfx::NativeView view) { | ||
return view->visibility() != aura::Window::VISIBILITY_HIDDEN; | ||
} | ||
|
||
} // namespace platform_util |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright (c) 2011 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/process_singleton.h" | ||
|
||
// Look for a Chrome instance that uses the same profile directory. | ||
ProcessSingleton::ProcessSingleton(const FilePath& user_data_dir) | ||
: window_(NULL), locked_(false), foreground_window_(NULL) { | ||
} | ||
|
||
ProcessSingleton::~ProcessSingleton() { | ||
} | ||
|
||
ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcess() { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
return PROCESS_NONE; | ||
} | ||
|
||
ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcessOrCreate() { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
return PROCESS_NONE; | ||
} | ||
|
||
bool ProcessSingleton::Create() { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
return true; | ||
} | ||
|
||
void ProcessSingleton::Cleanup() { | ||
// TODO(beng): | ||
NOTIMPLEMENTED(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// Copyright (c) 2011 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/ui/panels/auto_hiding_desktop_bar.h" | ||
|
||
#include "base/compiler_specific.h" | ||
|
||
namespace { | ||
|
||
class AutoHidingDesktopBarAura : public AutoHidingDesktopBar { | ||
public: | ||
explicit AutoHidingDesktopBarAura(Observer* observer); | ||
virtual ~AutoHidingDesktopBarAura() { } | ||
|
||
// Overridden from AutoHidingDesktopBar: | ||
virtual void UpdateWorkArea(const gfx::Rect& work_area) OVERRIDE; | ||
virtual bool IsEnabled(Alignment alignment) OVERRIDE; | ||
virtual int GetThickness(Alignment alignment) const OVERRIDE; | ||
virtual Visibility GetVisibility(Alignment alignment) const OVERRIDE; | ||
|
||
private: | ||
Observer* observer_; | ||
|
||
DISALLOW_COPY_AND_ASSIGN(AutoHidingDesktopBarAura); | ||
}; | ||
|
||
AutoHidingDesktopBarAura::AutoHidingDesktopBarAura(Observer* observer) | ||
: observer_(observer) { | ||
} | ||
|
||
void AutoHidingDesktopBarAura::UpdateWorkArea(const gfx::Rect& work_area) { | ||
} | ||
|
||
bool AutoHidingDesktopBarAura::IsEnabled( | ||
AutoHidingDesktopBar::Alignment alignment) { | ||
// No taskbar exists on ChromeOS. | ||
return false; | ||
} | ||
|
||
int AutoHidingDesktopBarAura::GetThickness( | ||
AutoHidingDesktopBar::Alignment alignment) const { | ||
return 0; | ||
} | ||
|
||
AutoHidingDesktopBar::Visibility AutoHidingDesktopBarAura::GetVisibility( | ||
AutoHidingDesktopBar::Alignment alignment) const { | ||
return AutoHidingDesktopBar::HIDDEN; | ||
} | ||
|
||
} // namespace | ||
|
||
// static | ||
AutoHidingDesktopBar* AutoHidingDesktopBar::Create(Observer* observer) { | ||
return new AutoHidingDesktopBarAura(observer); | ||
} |
Oops, something went wrong.