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.
BUG=carnitas TEST=compiles Review URL: http://codereview.chromium.org/6612047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77584 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
erg@google.com
committed
Mar 10, 2011
1 parent
aa35163
commit 99c49f6
Showing
7 changed files
with
88 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
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,29 @@ | ||
// 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 "views/test/test_views_delegate.h" | ||
|
||
TestViewsDelegate::TestViewsDelegate() {} | ||
TestViewsDelegate::~TestViewsDelegate() {} | ||
|
||
ui::Clipboard* TestViewsDelegate::GetClipboard() const { | ||
if (!clipboard_.get()) { | ||
// Note that we need a MessageLoop for the next call to work. | ||
clipboard_.reset(new ui::Clipboard); | ||
} | ||
return clipboard_.get(); | ||
} | ||
|
||
|
||
bool TestViewsDelegate::GetSavedWindowBounds(views::Window* window, | ||
const std::wstring& window_name, | ||
gfx::Rect* bounds) const { | ||
return false; | ||
} | ||
|
||
bool TestViewsDelegate::GetSavedMaximizedState(views::Window* window, | ||
const std::wstring& window_name, | ||
bool* maximized) const { | ||
return false; | ||
} |
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,31 @@ | ||
// 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 "views/test/views_test_base.h" | ||
|
||
#if defined(OS_WIN) | ||
#include <ole2.h> | ||
#endif | ||
|
||
namespace views { | ||
|
||
ViewsTestBase::ViewsTestBase() { | ||
#if defined(OS_WIN) | ||
OleInitialize(NULL); | ||
#endif | ||
} | ||
|
||
ViewsTestBase::~ViewsTestBase() { | ||
#if defined(OS_WIN) | ||
OleUninitialize(); | ||
#endif | ||
} | ||
|
||
void ViewsTestBase::TearDown() { | ||
// Flush the message loop because we have pending release tasks | ||
// and these tasks if un-executed would upset Valgrind. | ||
RunPendingMessages(); | ||
} | ||
|
||
} // namespace views |
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