summaryrefslogtreecommitdiffstats
path: root/views/window
diff options
context:
space:
mode:
Diffstat (limited to 'views/window')
-rw-r--r--views/window/non_client_view.cc14
-rw-r--r--views/window/non_client_view.h7
2 files changed, 21 insertions, 0 deletions
diff --git a/views/window/non_client_view.cc b/views/window/non_client_view.cc
index febf26c..48675c7 100644
--- a/views/window/non_client_view.cc
+++ b/views/window/non_client_view.cc
@@ -16,8 +16,14 @@
namespace views {
+// static
const int NonClientFrameView::kFrameShadowThickness = 1;
const int NonClientFrameView::kClientEdgeThickness = 1;
+const char NonClientFrameView::kViewClassName[] =
+ "views/window/NonClientFrameView";
+
+const char NonClientView::kViewClassName[] =
+ "views/window/NonClientView";
// The frame view and the client view are always at these specific indices,
// because the RootView message dispatch sends messages to items higher in the
@@ -158,6 +164,10 @@ void NonClientView::GetAccessibleState(ui::AccessibleViewState* state) {
state->name = accessible_name_;
}
+std::string NonClientView::GetClassName() const {
+ return kViewClassName;
+}
+
views::View* NonClientView::GetEventHandlerForPoint(const gfx::Point& point) {
// Because of the z-ordering of our child views (the client view is positioned
// over the non-client frame view, if the client view ever overlaps the frame
@@ -243,6 +253,10 @@ void NonClientFrameView::GetAccessibleState(ui::AccessibleViewState* state) {
state->role = ui::AccessibilityTypes::ROLE_WINDOW;
}
+std::string NonClientFrameView::GetClassName() const {
+ return kViewClassName;
+}
+
void NonClientFrameView::OnBoundsChanged(const gfx::Rect& previous_bounds) {
// Overridden to do nothing. The NonClientView manually calls Layout on the
// FrameView when it is itself laid out, see comment in NonClientView::Layout.
diff --git a/views/window/non_client_view.h b/views/window/non_client_view.h
index 395ec18..2f5b5509 100644
--- a/views/window/non_client_view.h
+++ b/views/window/non_client_view.h
@@ -25,6 +25,8 @@ namespace views {
// of it.
class NonClientFrameView : public View {
public:
+ // Internal class name.
+ static const char kViewClassName[];
// Various edges of the frame border have a 1 px shadow along their edges; in
// a few cases we shift elements based on this amount for visual appeal.
static const int kFrameShadowThickness;
@@ -62,6 +64,7 @@ class NonClientFrameView : public View {
// Overridden from View:
virtual bool HitTest(const gfx::Point& l) const OVERRIDE;
virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
+ virtual std::string GetClassName() const OVERRIDE;
protected:
virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
@@ -130,6 +133,9 @@ class NonClientFrameView : public View {
//
class NonClientView : public View {
public:
+ // Internal class name.
+ static const char kViewClassName[];
+
NonClientView();
virtual ~NonClientView();
@@ -203,6 +209,7 @@ class NonClientView : public View {
virtual gfx::Size GetMinimumSize() OVERRIDE;
virtual void Layout() OVERRIDE;
virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
+ virtual std::string GetClassName() const OVERRIDE;
virtual views::View* GetEventHandlerForPoint(const gfx::Point& point)
OVERRIDE;