| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ | 5 #ifndef VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ |
| 6 #define VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ | 6 #define VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ui/gfx/font.h" | 9 #include "ui/gfx/font.h" |
| 10 #include "views/focus/focus_manager.h" | 10 #include "views/focus/focus_manager.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 // Overridden from View: | 62 // Overridden from View: |
| 63 virtual void NativeViewHierarchyChanged(bool attached, | 63 virtual void NativeViewHierarchyChanged(bool attached, |
| 64 gfx::NativeView native_view, | 64 gfx::NativeView native_view, |
| 65 RootView* root_view); | 65 RootView* root_view); |
| 66 | 66 |
| 67 // Overridden from ClientView: | 67 // Overridden from ClientView: |
| 68 virtual bool CanClose(); | 68 virtual bool CanClose(); |
| 69 virtual void WindowClosing(); | 69 virtual void WindowClosing(); |
| 70 virtual int NonClientHitTest(const gfx::Point& point); | 70 virtual int NonClientHitTest(const gfx::Point& point); |
| 71 virtual DialogClientView* AsDialogClientView() { return this; } | 71 virtual DialogClientView* AsDialogClientView(); |
| 72 | 72 |
| 73 // FocusChangeListener implementation: | 73 // FocusChangeListener implementation: |
| 74 virtual void FocusWillChange(View* focused_before, View* focused_now); | 74 virtual void FocusWillChange(View* focused_before, View* focused_now); |
| 75 | 75 |
| 76 protected: | 76 protected: |
| 77 // View overrides: | 77 // View overrides: |
| 78 virtual void OnPaint(gfx::Canvas* canvas); | 78 virtual void OnPaint(gfx::Canvas* canvas); |
| 79 virtual void PaintChildren(gfx::Canvas* canvas); | 79 virtual void PaintChildren(gfx::Canvas* canvas); |
| 80 virtual void Layout(); | 80 virtual void Layout(); |
| 81 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); | 81 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 // Static resource initialization | 152 // Static resource initialization |
| 153 static gfx::Font* dialog_button_font_; | 153 static gfx::Font* dialog_button_font_; |
| 154 | 154 |
| 155 DISALLOW_COPY_AND_ASSIGN(DialogClientView); | 155 DISALLOW_COPY_AND_ASSIGN(DialogClientView); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace views | 158 } // namespace views |
| 159 | 159 |
| 160 #endif // #ifndef VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ | 160 #endif // #ifndef VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ |
| OLD | NEW |