blob: cb63abbbfb14976e362c12b7fa19d9539f7ee8e3 [file] [log] [blame]
// Copyright 2017 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/vr/elements/button_texture.h"
namespace vr {
ButtonTexture::ButtonTexture() = default;
ButtonTexture::~ButtonTexture() = default;
void ButtonTexture::OnSetMode() {
set_dirty();
}
void ButtonTexture::SetPressed(bool pressed) {
if (pressed_ != pressed)
set_dirty();
pressed_ = pressed;
}
void ButtonTexture::SetHovered(bool hovered) {
if (hovered_ != hovered)
set_dirty();
hovered_ = hovered;
}
} // namespace vr