diff options
Diffstat (limited to 'ui/base/models')
-rw-r--r-- | ui/base/models/button_menu_item_model.h | 5 | ||||
-rw-r--r-- | ui/base/models/menu_model.h | 3 | ||||
-rw-r--r-- | ui/base/models/simple_menu_model.h | 4 | ||||
-rw-r--r-- | ui/base/models/table_model.h | 5 | ||||
-rw-r--r-- | ui/base/models/tree_model.h | 3 |
5 files changed, 12 insertions, 8 deletions
diff --git a/ui/base/models/button_menu_item_model.h b/ui/base/models/button_menu_item_model.h index 7c83e5e..7e5d198 100644 --- a/ui/base/models/button_menu_item_model.h +++ b/ui/base/models/button_menu_item_model.h @@ -9,12 +9,13 @@ #include <vector> #include "base/string16.h" +#include "ui/ui_api.h" namespace ui { // A model representing the rows of buttons that should be inserted in a button // containing menu item. -class ButtonMenuItemModel { +class UI_API ButtonMenuItemModel { public: // Types of buttons. enum ButtonType { @@ -23,7 +24,7 @@ class ButtonMenuItemModel { TYPE_BUTTON_LABEL }; - class Delegate { + class UI_API Delegate { public: // Some command ids have labels that change over time. virtual bool IsItemForCommandIdDynamic(int command_id) const; diff --git a/ui/base/models/menu_model.h b/ui/base/models/menu_model.h index a0c3627..b4419fc 100644 --- a/ui/base/models/menu_model.h +++ b/ui/base/models/menu_model.h @@ -10,6 +10,7 @@ #include "base/string16.h" #include "ui/base/models/menu_model_delegate.h" #include "ui/gfx/native_widget_types.h" +#include "ui/ui_api.h" class SkBitmap; @@ -23,7 +24,7 @@ class Accelerator; class ButtonMenuItemModel; // An interface implemented by an object that provides the content of a menu. -class MenuModel { +class UI_API MenuModel { public: // The type of item. enum ItemType { diff --git a/ui/base/models/simple_menu_model.h b/ui/base/models/simple_menu_model.h index e8ccb40..de233fd 100644 --- a/ui/base/models/simple_menu_model.h +++ b/ui/base/models/simple_menu_model.h @@ -20,9 +20,9 @@ class ButtonMenuItemModel; // items. This makes it easy to construct fixed menus. Menus populated by // dynamic data sources may be better off implementing MenuModel directly. // The breadth of MenuModel is not exposed through this API. -class SimpleMenuModel : public MenuModel { +class UI_API SimpleMenuModel : public MenuModel { public: - class Delegate { + class UI_API Delegate { public: // Methods for determining the state of specific command ids. virtual bool IsCommandIdChecked(int command_id) const = 0; diff --git a/ui/base/models/table_model.h b/ui/base/models/table_model.h index b9f02c2..968edf1 100644 --- a/ui/base/models/table_model.h +++ b/ui/base/models/table_model.h @@ -9,6 +9,7 @@ #include <vector> #include "base/string16.h" +#include "ui/ui_api.h" #include "unicode/coll.h" class SkBitmap; @@ -18,7 +19,7 @@ namespace ui { class TableModelObserver; // The model driving the TableView. -class TableModel { +class UI_API TableModel { public: // See HasGroups, get GetGroupID for details as to how this is used. struct Group { @@ -89,7 +90,7 @@ class TableModel { }; // TableColumn specifies the title, alignment and size of a particular column. -struct TableColumn { +struct UI_API TableColumn { enum Alignment { LEFT, RIGHT, CENTER }; diff --git a/ui/base/models/tree_model.h b/ui/base/models/tree_model.h index 190115b..56b1bff 100644 --- a/ui/base/models/tree_model.h +++ b/ui/base/models/tree_model.h @@ -9,6 +9,7 @@ #include <vector> #include "base/string16.h" +#include "ui/ui_api.h" class SkBitmap; @@ -53,7 +54,7 @@ class TreeModelObserver { // TreeModel ------------------------------------------------------------------ // The model for TreeView. -class TreeModel { +class UI_API TreeModel { public: // Returns the root of the tree. This may or may not be shown in the tree, // see SetRootShown for details. |