Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: ui/views/window/dialog_frame_view.h

Issue 11571023: Move ash/wm's DialogFrameView to ui/views/window; etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reorder DialogDelegate functions; inline Get*Params into WidgetExample::ButtonPressed; etc. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/window/dialog_delegate.cc ('k') | ui/views/window/dialog_frame_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_frame_view.h
diff --git a/ash/wm/dialog_frame_view.h b/ui/views/window/dialog_frame_view.h
similarity index 69%
rename from ash/wm/dialog_frame_view.h
rename to ui/views/window/dialog_frame_view.h
index c1f29be8c3a909f0ef0412de1e7b7e891313d609..78ca0edf08b240dea07c4984bd567bae2f78714a 100644
--- a/ash/wm/dialog_frame_view.h
+++ b/ui/views/window/dialog_frame_view.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ASH_WM_DIALOG_FRAME_VIEW_H_
-#define ASH_WM_DIALOG_FRAME_VIEW_H_
+#ifndef UI_VIEWS_WINDOW_DIALOG_FRAME_VIEW_H_
+#define UI_VIEWS_WINDOW_DIALOG_FRAME_VIEW_H_
#include "ui/views/controls/button/button.h"
#include "ui/views/window/non_client_view.h"
@@ -13,15 +13,12 @@ class Font;
}
namespace views {
-class ImageButton;
-}
-namespace ash {
-namespace internal {
+class ImageButton;
-// A NonClientFrameView that implements a Google-style for dialogs.
-class DialogFrameView : public views::NonClientFrameView,
- public views::ButtonListener {
+// A NonClientFrameView that implements a new-style for dialogs.
+class VIEWS_EXPORT DialogFrameView : public NonClientFrameView,
+ public ButtonListener {
public:
// Internal class name.
static const char kViewClassName[];
@@ -29,7 +26,7 @@ class DialogFrameView : public views::NonClientFrameView,
DialogFrameView();
virtual ~DialogFrameView();
- // Overridden from views::NonClientFrameView:
+ // Overridden from NonClientFrameView:
virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
virtual gfx::Rect GetWindowBoundsForClientBounds(
const gfx::Rect& client_bounds) const OVERRIDE;
@@ -45,9 +42,8 @@ class DialogFrameView : public views::NonClientFrameView,
virtual void Layout() OVERRIDE;
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
- // Overridden from views::ButtonListener:
- virtual void ButtonPressed(views::Button* sender,
- const ui::Event& event) OVERRIDE;
+ // Overridden from ButtonListener:
+ virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE;
private:
gfx::Insets GetPaddingInsets() const;
@@ -56,12 +52,11 @@ class DialogFrameView : public views::NonClientFrameView,
scoped_ptr<gfx::Font> title_font_;
gfx::Rect title_display_rect_;
- views::ImageButton* close_button_;
+ ImageButton* close_button_;
DISALLOW_COPY_AND_ASSIGN(DialogFrameView);
};
-} // namespace internal
} // namespace views
-#endif // ASH_WM_DIALOG_FRAME_VIEW_H_
+#endif // UI_VIEWS_WINDOW_DIALOG_FRAME_VIEW_H_
« no previous file with comments | « ui/views/window/dialog_delegate.cc ('k') | ui/views/window/dialog_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698