forked from chromium/chromium
-
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.
Aura: Adds custom cursors for drag and drop (second attempt:
first attempt reverted due to build break: http://codereview.chromium.org/10316019 ) BUG=121135 TEST=none Review URL: https://chromiumcodereview.appspot.com/10378079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136653 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
varunjain@chromium.org
committed
May 11, 2012
1 parent
ce4f353
commit f54bd17
Showing
19 changed files
with
248 additions
and
53 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
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
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) 2012 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 "ui/aura/test/test_aura_initializer.h" | ||
|
||
#include "base/base_paths.h" | ||
#include "base/path_service.h" | ||
#include "ui/base/resource/resource_bundle.h" | ||
|
||
namespace aura { | ||
namespace test { | ||
|
||
TestAuraInitializer::TestAuraInitializer() { | ||
#if defined(OS_LINUX) | ||
FilePath pak_file; | ||
PathService::Get(base::DIR_MODULE, &pak_file); | ||
pak_file = pak_file.Append(FILE_PATH_LITERAL( | ||
"test_support_aura_resources.pak")); | ||
ui::ResourceBundle::InitSharedInstanceWithPakFile(pak_file); | ||
#endif | ||
} | ||
|
||
TestAuraInitializer::~TestAuraInitializer() { | ||
#if defined(OS_LINUX) | ||
ui::ResourceBundle::CleanupSharedInstance(); | ||
#endif | ||
} | ||
|
||
} // namespace test | ||
} // namespace aura |
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,28 @@ | ||
// Copyright (c) 2012 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. | ||
|
||
#ifndef UI_AURA_TEST_TEST_AURA_INITIALIZER_H_ | ||
#define UI_AURA_TEST_TEST_AURA_INITIALIZER_H_ | ||
#pragma once | ||
|
||
#include "base/basictypes.h" | ||
|
||
namespace aura { | ||
namespace test { | ||
|
||
// Initializes various objects needed to run unit tests that use aura::* | ||
// objects. | ||
class TestAuraInitializer { | ||
public: | ||
TestAuraInitializer(); | ||
virtual ~TestAuraInitializer(); | ||
|
||
private: | ||
DISALLOW_COPY_AND_ASSIGN(TestAuraInitializer); | ||
}; | ||
|
||
} // namespace test | ||
} // namespace aura | ||
|
||
#endif // UI_AURA_TEST_TEST_AURA_INITIALIZER_H_ |
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
Oops, something went wrong.