Fix the typo "visibility".
BUG=none TEST=none Review URL: https://codereview.chromium.org/1351363002 Cr-Commit-Position: refs/heads/master@{#349767}
This commit is contained in:
ash/wm
chrome
android
java
src
org
chromium
chrome
browser
widget
findinpage
browser
resources
sessions
ui
test
mandoline/ui/aura
ui
@ -960,7 +960,7 @@ TEST_F(LockStateControllerTest, TestHiddenBackgroundLockCancel) {
|
|||||||
Advance(SessionStateAnimator::ANIMATION_SPEED_UNDO_MOVE_WINDOWS);
|
Advance(SessionStateAnimator::ANIMATION_SPEED_UNDO_MOVE_WINDOWS);
|
||||||
|
|
||||||
// When the CancelPrelockAnimation sequence finishes it queues up a
|
// When the CancelPrelockAnimation sequence finishes it queues up a
|
||||||
// restore background visibilty sequence when the background is hidden.
|
// restore background visibility sequence when the background is hidden.
|
||||||
ExpectRestoringBackgroundVisibility();
|
ExpectRestoringBackgroundVisibility();
|
||||||
|
|
||||||
Advance(SessionStateAnimator::ANIMATION_SPEED_IMMEDIATE);
|
Advance(SessionStateAnimator::ANIMATION_SPEED_IMMEDIATE);
|
||||||
@ -1010,7 +1010,7 @@ TEST_F(LockStateControllerTest, TestHiddenBackgroundLockUnlock) {
|
|||||||
Advance(SessionStateAnimator::ANIMATION_SPEED_MOVE_WINDOWS);
|
Advance(SessionStateAnimator::ANIMATION_SPEED_MOVE_WINDOWS);
|
||||||
|
|
||||||
// When the StartUnlockAnimationAfterUIDestroyed sequence finishes it queues
|
// When the StartUnlockAnimationAfterUIDestroyed sequence finishes it queues
|
||||||
// up a restore background visibilty sequence when the background is hidden.
|
// up a restore background visibility sequence when the background is hidden.
|
||||||
ExpectRestoringBackgroundVisibility();
|
ExpectRestoringBackgroundVisibility();
|
||||||
|
|
||||||
Advance(SessionStateAnimator::ANIMATION_SPEED_IMMEDIATE);
|
Advance(SessionStateAnimator::ANIMATION_SPEED_IMMEDIATE);
|
||||||
|
@ -198,7 +198,7 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
|
|||||||
hide_shelf_when_fullscreen_ = value;
|
hide_shelf_when_fullscreen_ = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the minimum visibilty is true, ash will try to keep a
|
// If the minimum visibility is true, ash will try to keep a
|
||||||
// minimum amount of the window is always visible on the work area
|
// minimum amount of the window is always visible on the work area
|
||||||
// when shown.
|
// when shown.
|
||||||
// TODO(oshima): Consolidate this and window_position_managed
|
// TODO(oshima): Consolidate this and window_position_managed
|
||||||
|
@ -40,7 +40,7 @@ import java.util.List;
|
|||||||
* between the entries.
|
* between the entries.
|
||||||
*/
|
*/
|
||||||
class FindResultBar extends View {
|
class FindResultBar extends View {
|
||||||
private static final int VISIBILTY_ANIMATION_DURATION_MS = 200;
|
private static final int VISIBILITY_ANIMATION_DURATION_MS = 200;
|
||||||
|
|
||||||
private final int mBackgroundColor;
|
private final int mBackgroundColor;
|
||||||
private final int mBackgroundBorderColor;
|
private final int mBackgroundBorderColor;
|
||||||
@ -136,7 +136,7 @@ class FindResultBar extends View {
|
|||||||
MathUtils.flipSignIf(mBarTouchWidth, LocalizationUtils.isLayoutRtl()));
|
MathUtils.flipSignIf(mBarTouchWidth, LocalizationUtils.isLayoutRtl()));
|
||||||
|
|
||||||
mVisibilityAnimation = ObjectAnimator.ofFloat(this, TRANSLATION_X, 0);
|
mVisibilityAnimation = ObjectAnimator.ofFloat(this, TRANSLATION_X, 0);
|
||||||
mVisibilityAnimation.setDuration(VISIBILTY_ANIMATION_DURATION_MS);
|
mVisibilityAnimation.setDuration(VISIBILITY_ANIMATION_DURATION_MS);
|
||||||
mVisibilityAnimation.setInterpolator(BakedBezierInterpolator.FADE_IN_CURVE);
|
mVisibilityAnimation.setInterpolator(BakedBezierInterpolator.FADE_IN_CURVE);
|
||||||
mTab.getWindowAndroid().startAnimationOverContent(mVisibilityAnimation);
|
mTab.getWindowAndroid().startAnimationOverContent(mVisibilityAnimation);
|
||||||
}
|
}
|
||||||
@ -150,7 +150,7 @@ class FindResultBar extends View {
|
|||||||
|
|
||||||
mVisibilityAnimation = ObjectAnimator.ofFloat(this, TRANSLATION_X,
|
mVisibilityAnimation = ObjectAnimator.ofFloat(this, TRANSLATION_X,
|
||||||
MathUtils.flipSignIf(mBarTouchWidth, LocalizationUtils.isLayoutRtl()));
|
MathUtils.flipSignIf(mBarTouchWidth, LocalizationUtils.isLayoutRtl()));
|
||||||
mVisibilityAnimation.setDuration(VISIBILTY_ANIMATION_DURATION_MS);
|
mVisibilityAnimation.setDuration(VISIBILITY_ANIMATION_DURATION_MS);
|
||||||
mVisibilityAnimation.setInterpolator(BakedBezierInterpolator.FADE_OUT_CURVE);
|
mVisibilityAnimation.setInterpolator(BakedBezierInterpolator.FADE_OUT_CURVE);
|
||||||
mTab.getWindowAndroid().startAnimationOverContent(mVisibilityAnimation);
|
mTab.getWindowAndroid().startAnimationOverContent(mVisibilityAnimation);
|
||||||
mVisibilityAnimation.addListener(new AnimatorListenerAdapter() {
|
mVisibilityAnimation.addListener(new AnimatorListenerAdapter() {
|
||||||
|
@ -79,7 +79,7 @@ cr.define('cr.ui', function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates version label visibilty.
|
* Updates version label visibility.
|
||||||
* @param {boolean} show True if version label should be visible.
|
* @param {boolean} show True if version label should be visible.
|
||||||
*/
|
*/
|
||||||
Oobe.showVersion = function(show) {
|
Oobe.showVersion = function(show) {
|
||||||
|
@ -724,7 +724,7 @@ cr.define('options.internet', function() {
|
|||||||
* Updates visibility/enabled of the login/disconnect/configure buttons.
|
* Updates visibility/enabled of the login/disconnect/configure buttons.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
updateConnectionButtonVisibilty_: function() {
|
updateConnectionButtonVisibility_: function() {
|
||||||
var onc = this.onc_;
|
var onc = this.onc_;
|
||||||
if (this.type_ == 'Ethernet') {
|
if (this.type_ == 'Ethernet') {
|
||||||
// Ethernet can never be connected or disconnected and can always be
|
// Ethernet can never be connected or disconnected and can always be
|
||||||
@ -1385,7 +1385,7 @@ cr.define('options.internet', function() {
|
|||||||
detailsPage.onc_ = new OncData(oncData);
|
detailsPage.onc_ = new OncData(oncData);
|
||||||
|
|
||||||
detailsPage.populateHeader_();
|
detailsPage.populateHeader_();
|
||||||
detailsPage.updateConnectionButtonVisibilty_();
|
detailsPage.updateConnectionButtonVisibility_();
|
||||||
detailsPage.updateDetails_();
|
detailsPage.updateDetails_();
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1404,7 +1404,7 @@ cr.define('options.internet', function() {
|
|||||||
sendShowDetailsMetrics(type, onc.getActiveValue('ConnectionState'));
|
sendShowDetailsMetrics(type, onc.getActiveValue('ConnectionState'));
|
||||||
|
|
||||||
detailsPage.populateHeader_();
|
detailsPage.populateHeader_();
|
||||||
detailsPage.updateConnectionButtonVisibilty_();
|
detailsPage.updateConnectionButtonVisibility_();
|
||||||
detailsPage.updateDetails_();
|
detailsPage.updateDetails_();
|
||||||
|
|
||||||
// TODO(stevenjb): Some of the setup below should be moved to
|
// TODO(stevenjb): Some of the setup below should be moved to
|
||||||
|
@ -324,7 +324,7 @@ IN_PROC_BROWSER_TEST_F(SessionRestoreTest,
|
|||||||
RestoredTabsHaveCorrectVisibilityState) {
|
RestoredTabsHaveCorrectVisibilityState) {
|
||||||
// Create tabs.
|
// Create tabs.
|
||||||
GURL test_page(ui_test_utils::GetTestUrl(base::FilePath(),
|
GURL test_page(ui_test_utils::GetTestUrl(base::FilePath(),
|
||||||
base::FilePath(FILE_PATH_LITERAL("tab-restore-visibilty.html"))));
|
base::FilePath(FILE_PATH_LITERAL("tab-restore-visibility.html"))));
|
||||||
ui_test_utils::NavigateToURLWithDisposition(
|
ui_test_utils::NavigateToURLWithDisposition(
|
||||||
browser(), test_page, NEW_FOREGROUND_TAB,
|
browser(), test_page, NEW_FOREGROUND_TAB,
|
||||||
ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION);
|
ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION);
|
||||||
|
@ -45,7 +45,7 @@ void CheckVisbility(TabStripModel* tab_strip_model, int visible_index) {
|
|||||||
|
|
||||||
void CreateTestTabs(Browser* browser) {
|
void CreateTestTabs(Browser* browser) {
|
||||||
GURL test_page(ui_test_utils::GetTestUrl(base::FilePath(),
|
GURL test_page(ui_test_utils::GetTestUrl(base::FilePath(),
|
||||||
base::FilePath(FILE_PATH_LITERAL("tab-restore-visibilty.html"))));
|
base::FilePath(FILE_PATH_LITERAL("tab-restore-visibility.html"))));
|
||||||
ui_test_utils::NavigateToURLWithDisposition(
|
ui_test_utils::NavigateToURLWithDisposition(
|
||||||
browser, test_page, NEW_FOREGROUND_TAB,
|
browser, test_page, NEW_FOREGROUND_TAB,
|
||||||
ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION);
|
ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION);
|
||||||
|
@ -158,7 +158,7 @@ TEST_F(BookmarkBarViewTest, AppsShortcutVisibility) {
|
|||||||
EXPECT_FALSE(test_helper_->apps_page_shortcut()->visible());
|
EXPECT_FALSE(test_helper_->apps_page_shortcut()->visible());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Various assertions around visibilty of the overflow_button.
|
// Various assertions around visibility of the overflow_button.
|
||||||
TEST_F(BookmarkBarViewTest, OverflowVisibility) {
|
TEST_F(BookmarkBarViewTest, OverflowVisibility) {
|
||||||
profile()->CreateBookmarkModel(true);
|
profile()->CreateBookmarkModel(true);
|
||||||
CreateBookmarkBarView();
|
CreateBookmarkBarView();
|
||||||
|
@ -72,7 +72,7 @@ void NativeWidgetViewManager::OnWindowVisibilityChanged(aura::Window* window,
|
|||||||
bool visible) {
|
bool visible) {
|
||||||
view_->SetVisible(visible);
|
view_->SetVisible(visible);
|
||||||
// NOTE: We could also update aura::Window's visibility when the View's
|
// NOTE: We could also update aura::Window's visibility when the View's
|
||||||
// visibilty changes, but this code isn't going to be around for very long so
|
// visibility changes, but this code isn't going to be around for very long so
|
||||||
// I'm not bothering.
|
// I'm not bothering.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ class MessageCenterButtonBar : public views::View,
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
// Updates the layout manager which can have differing configuration
|
// Updates the layout manager which can have differing configuration
|
||||||
// depending on the visibilty of different parts of the button bar.
|
// depending on the visibility of different parts of the button bar.
|
||||||
void ViewVisibilityChanged();
|
void ViewVisibilityChanged();
|
||||||
|
|
||||||
// Overridden from views::View:
|
// Overridden from views::View:
|
||||||
|
@ -109,7 +109,7 @@ class UI_TOUCH_SELECTION_EXPORT TouchHandle : public TouchSelectionDraggable {
|
|||||||
base::TimeTicks touch_down_time_;
|
base::TimeTicks touch_down_time_;
|
||||||
|
|
||||||
// Note that when a fade animation is active, |is_visible_| and |position_|
|
// Note that when a fade animation is active, |is_visible_| and |position_|
|
||||||
// may not reflect the actual visibilty and position of the drawable. This
|
// may not reflect the actual visibility and position of the drawable. This
|
||||||
// discrepancy is resolved either upon fade completion or cancellation.
|
// discrepancy is resolved either upon fade completion or cancellation.
|
||||||
base::TimeTicks fade_end_time_;
|
base::TimeTicks fade_end_time_;
|
||||||
gfx::PointF fade_start_position_;
|
gfx::PointF fade_start_position_;
|
||||||
|
Reference in New Issue
Block a user