| 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_BROWSER_FONTS_LANGUAGE_WINDOW_H__ | 5 #ifndef CHROME_BROWSER_FONTS_LANGUAGE_WINDOW_H__ |
| 6 #define CHROME_BROWSER_FONTS_LANGUAGE_WINDOW_H__ | 6 #define CHROME_BROWSER_FONTS_LANGUAGE_WINDOW_H__ |
| 7 | 7 |
| 8 #include "chrome/views/dialog_delegate.h" | 8 #include "chrome/views/dialog_delegate.h" |
| 9 #include "chrome/views/tabbed_pane.h" | 9 #include "chrome/views/tabbed_pane.h" |
| 10 #include "chrome/views/view.h" | 10 #include "chrome/views/view.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 // views::WindowDelegate Methods: | 31 // views::WindowDelegate Methods: |
| 32 virtual bool IsModal() const { return true; } | 32 virtual bool IsModal() const { return true; } |
| 33 virtual std::wstring GetWindowTitle() const; | 33 virtual std::wstring GetWindowTitle() const; |
| 34 virtual views::View* GetContentsView(); | 34 virtual views::View* GetContentsView(); |
| 35 | 35 |
| 36 // views::View overrides: | 36 // views::View overrides: |
| 37 virtual void Layout(); | 37 virtual void Layout(); |
| 38 virtual gfx::Size GetPreferredSize(); | 38 virtual gfx::Size GetPreferredSize(); |
| 39 | 39 |
| 40 // Selects the Languages tab. |
| 41 void SelectLanguagesTab(); |
| 42 |
| 40 protected: | 43 protected: |
| 41 // views::View overrides: | 44 // views::View overrides: |
| 42 virtual void ViewHierarchyChanged(bool is_add, | 45 virtual void ViewHierarchyChanged(bool is_add, |
| 43 views::View* parent, | 46 views::View* parent, |
| 44 views::View* child); | 47 views::View* child); |
| 45 private: | 48 private: |
| 46 // Init the assorted Tabbed pages | 49 // Init the assorted Tabbed pages |
| 47 void Init(); | 50 void Init(); |
| 48 | 51 |
| 49 // The Tab view that contains all of the options pages. | 52 // The Tab view that contains all of the options pages. |
| 50 views::TabbedPane* tabs_; | 53 views::TabbedPane* tabs_; |
| 51 | 54 |
| 52 // Fonts Page View handle remembered so that prefs is updated only when | 55 // Fonts Page View handle remembered so that prefs is updated only when |
| 53 // OK is pressed. | 56 // OK is pressed. |
| 54 FontsPageView* fonts_page_; | 57 FontsPageView* fonts_page_; |
| 55 | 58 |
| 56 // Languages Page View handle remembered so that prefs is updated only when | 59 // Languages Page View handle remembered so that prefs is updated only when |
| 57 // OK is pressed. | 60 // OK is pressed. |
| 58 LanguagesPageView* languages_page_; | 61 LanguagesPageView* languages_page_; |
| 59 | 62 |
| 60 // The Profile associated with these options. | 63 // The Profile associated with these options. |
| 61 Profile* profile_; | 64 Profile* profile_; |
| 62 | 65 |
| 63 DISALLOW_EVIL_CONSTRUCTORS(FontsLanguagesWindowView); | 66 DISALLOW_EVIL_CONSTRUCTORS(FontsLanguagesWindowView); |
| 64 }; | 67 }; |
| 65 | 68 |
| 66 #endif // #ifndef CHROME_BROWSER_FONTS_LANGUAGE_WINDOW_H__ | 69 #endif // #ifndef CHROME_BROWSER_FONTS_LANGUAGE_WINDOW_H__ |
| 67 | 70 |
| OLD | NEW |