OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_GTK_OPTIONS_OPTIONS_LAYOUT_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_OPTIONS_OPTIONS_LAYOUT_GTK_H_ |
| 7 |
| 8 #include <gtk/gtk.h> |
| 9 #include <string> |
| 10 |
| 11 #include "base/basictypes.h" |
| 12 |
| 13 class OptionsLayoutBuilderGtk { |
| 14 public: |
| 15 explicit OptionsLayoutBuilderGtk(int num_rows); |
| 16 |
| 17 GtkWidget* get_page_widget() { |
| 18 return page_; |
| 19 } |
| 20 |
| 21 // Adds an option group to the table. Handles layout and the placing of |
| 22 // separators between groups. |
| 23 void AddOptionGroup(const std::string& title, GtkWidget* content); |
| 24 |
| 25 private: |
| 26 // The parent widget |
| 27 GtkWidget* page_; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(OptionsLayoutBuilderGtk); |
| 30 }; |
| 31 |
| 32 #endif // CHROME_BROWSER_GTK_OPTIONS_OPTIONS_LAYOUT_GTK_H_ |
OLD | NEW |