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 CHROME_VIEWS_DIALOG_CLIENT_VIEW_H_ | 5 #ifndef CHROME_VIEWS_DIALOG_CLIENT_VIEW_H_ |
6 #define CHROME_VIEWS_DIALOG_CLIENT_VIEW_H_ | 6 #define CHROME_VIEWS_DIALOG_CLIENT_VIEW_H_ |
7 | 7 |
8 #include "chrome/common/gfx/chrome_font.h" | 8 #include "chrome/common/gfx/chrome_font.h" |
9 #include "chrome/views/client_view.h" | 9 #include "chrome/views/client_view.h" |
10 #include "chrome/views/native_button.h" | 10 #include "chrome/views/native_button.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 virtual int NonClientHitTest(const gfx::Point& point); | 52 virtual int NonClientHitTest(const gfx::Point& point); |
53 virtual DialogClientView* AsDialogClientView() { return this; } | 53 virtual DialogClientView* AsDialogClientView() { return this; } |
54 | 54 |
55 protected: | 55 protected: |
56 // View overrides: | 56 // View overrides: |
57 virtual void Paint(ChromeCanvas* canvas); | 57 virtual void Paint(ChromeCanvas* canvas); |
58 virtual void PaintChildren(ChromeCanvas* canvas); | 58 virtual void PaintChildren(ChromeCanvas* canvas); |
59 virtual void Layout(); | 59 virtual void Layout(); |
60 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); | 60 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); |
61 virtual void DidChangeBounds(const CRect& prev, const CRect& next); | 61 virtual void DidChangeBounds(const CRect& prev, const CRect& next); |
62 virtual void GetPreferredSize(CSize* out); | 62 virtual gfx::Size GetPreferredSize(); |
63 virtual bool AcceleratorPressed(const Accelerator& accelerator); | 63 virtual bool AcceleratorPressed(const Accelerator& accelerator); |
64 | 64 |
65 // NativeButton::Listener implementation: | 65 // NativeButton::Listener implementation: |
66 virtual void ButtonPressed(NativeButton* sender); | 66 virtual void ButtonPressed(NativeButton* sender); |
67 | 67 |
68 private: | 68 private: |
69 // Paint the size box in the bottom right corner of the window if it is | 69 // Paint the size box in the bottom right corner of the window if it is |
70 // resizable. | 70 // resizable. |
71 void PaintSizeBox(ChromeCanvas* canvas); | 71 void PaintSizeBox(ChromeCanvas* canvas); |
72 | 72 |
(...skipping 27 matching lines...) Expand all Loading... |
100 static void InitClass(); | 100 static void InitClass(); |
101 static ChromeFont dialog_button_font_; | 101 static ChromeFont dialog_button_font_; |
102 | 102 |
103 DISALLOW_EVIL_CONSTRUCTORS(DialogClientView); | 103 DISALLOW_EVIL_CONSTRUCTORS(DialogClientView); |
104 }; | 104 }; |
105 | 105 |
106 } | 106 } |
107 | 107 |
108 #endif // #ifndef CHROME_VIEWS_DIALOG_CLIENT_VIEW_H_ | 108 #endif // #ifndef CHROME_VIEWS_DIALOG_CLIENT_VIEW_H_ |
109 | 109 |
OLD | NEW |