#include "ui/aura/test/test_window_delegate.h"
#include "base/strings/stringprintf.h"
#include "third_party/skia/include/core/SkPath.h"
#include "ui/aura/window.h"
#include "ui/base/hit_test.h"
#include "ui/compositor/paint_recorder.h"
#include "ui/events/event.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/geometry/skia_conversions.h"
#if defined(USE_AURA)
#include "ui/base/cursor/cursor.h"
#endif
namespace aura {
namespace test {
TestWindowDelegate::TestWindowDelegate()
: … { … }
TestWindowDelegate::~TestWindowDelegate() { … }
TestWindowDelegate* TestWindowDelegate::CreateSelfDestroyingDelegate() { … }
gfx::Size TestWindowDelegate::GetMinimumSize() const { … }
gfx::Size TestWindowDelegate::GetMaximumSize() const { … }
void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds) { … }
gfx::NativeCursor TestWindowDelegate::GetCursor(const gfx::Point& point) { … }
int TestWindowDelegate::GetNonClientComponent(const gfx::Point& point) const { … }
bool TestWindowDelegate::ShouldDescendIntoChildForEventHandling(
Window* child,
const gfx::Point& location) { … }
bool TestWindowDelegate::CanFocus() { … }
void TestWindowDelegate::OnCaptureLost() { … }
void TestWindowDelegate::OnPaint(const ui::PaintContext& context) { … }
void TestWindowDelegate::OnDeviceScaleFactorChanged(
float old_device_scale_factor,
float new_device_scale_factor) { … }
void TestWindowDelegate::OnWindowDestroying(Window* window) { … }
void TestWindowDelegate::OnWindowDestroyed(Window* window) { … }
void TestWindowDelegate::OnWindowTargetVisibilityChanged(bool visible) { … }
void TestWindowDelegate::OnWindowOcclusionChanged(
Window::OcclusionState old_occlusion_state,
Window::OcclusionState new_occlusion_state) { … }
bool TestWindowDelegate::HasHitTestMask() const { … }
void TestWindowDelegate::GetHitTestMask(SkPath* mask) const { … }
ColorTestWindowDelegate::ColorTestWindowDelegate(SkColor color)
: … { … }
ColorTestWindowDelegate::~ColorTestWindowDelegate() { … }
void ColorTestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds) { … }
void ColorTestWindowDelegate::OnKeyEvent(ui::KeyEvent* event) { … }
void ColorTestWindowDelegate::OnWindowDestroyed(Window* window) { … }
void ColorTestWindowDelegate::OnPaint(const ui::PaintContext& context) { … }
MaskedWindowDelegate::MaskedWindowDelegate(const gfx::Rect mask_rect)
: … { … }
bool MaskedWindowDelegate::HasHitTestMask() const { … }
void MaskedWindowDelegate::GetHitTestMask(SkPath* mask) const { … }
EventCountDelegate::EventCountDelegate()
: … { … }
void EventCountDelegate::OnKeyEvent(ui::KeyEvent* event) { … }
void EventCountDelegate::OnMouseEvent(ui::MouseEvent* event) { … }
void EventCountDelegate::OnGestureEvent(ui::GestureEvent* event) { … }
std::string EventCountDelegate::GetMouseMotionCountsAndReset() { … }
std::string EventCountDelegate::GetMouseButtonCountsAndReset() { … }
std::string EventCountDelegate::GetKeyCountsAndReset() { … }
int EventCountDelegate::GetGestureCountAndReset() { … }
}
}