/external/chromium_org/ui/events/ |
H A D | event.h | 303 // Create a new LocatedEvent which is identical to the provided model. 304 // If source / target windows are provided, the model location will be 307 LocatedEvent(const LocatedEvent& model, T* source, T* target) argument 308 : Event(model), 309 location_(model.location_), 310 root_location_(model.root_location_) { 332 // Create a new MouseEvent based on the provided model. 334 // If source / target windows are provided, the model location will be 337 MouseEvent(const MouseEvent& model, T* source, T* target) argument 338 : LocatedEvent(model, sourc 343 MouseEvent(const MouseEvent& model, T* source, T* target, EventType type, int flags) argument 451 MouseWheelEvent(const MouseWheelEvent& model, T* source, T* target) argument 487 TouchEvent(const TouchEvent& model, T* source, T* target) argument 744 ScrollEvent(const ScrollEvent& model, T* source, T* target) argument 800 GestureEvent(const GestureEvent& model, T* source, T* target) argument [all...] |
/external/chromium_org/ui/gfx/ |
H A D | render_text.cc | 426 // Reset selection model. SetText should always followed by SetSelectionModel 538 // Use an adjacent selection model if the cursor is not at a valid position. 549 bool RenderText::MoveCursorTo(const SelectionModel& model) { argument 550 // Enforce valid selection model components. 552 Range range(std::min(model.selection().start(), text_length), 553 std::min(model.caret_pos(), text_length)); 554 // The current model only supports caret positions at valid cursor indices. 557 SelectionModel sel(range, model.caret_affinity()); 938 void RenderText::SetSelectionModel(const SelectionModel& model) { argument 939 DCHECK_LE(model [all...] |
/external/chromium_org/ui/views/controls/combobox/ |
H A D | combobox.cc | 113 int GetAdjacentIndex(ui::ComboboxModel* model, int increment, int index) { argument 117 while (index >= 0 && index < model->GetItemCount()) { 118 if (!model->IsItemSeparatorAt(index) || !model->IsItemEnabledAt(index)) 230 Combobox::Combobox(ui::ComboboxModel* model) argument 231 : model_(model), 315 for (int i = 0; i < model()->GetItemCount(); ++i) { 316 if (value == model()->GetItemAt(i)) { 375 return model()->IsItemEnabledAt(MenuCommandToIndex(id)); 388 return model() 565 OnComboboxModelChanged(ui::ComboboxModel* model) argument [all...] |
H A D | combobox.h | 62 // |model| is not owned by the combobox. 63 explicit Combobox(ui::ComboboxModel* model); 73 // Informs the combobox that its model changed. 80 // Looks for the first occurrence of |value| in |model()|. If found, selects 84 ui::ComboboxModel* model() const { return model_; } function in class:views::Combobox 122 virtual void OnComboboxModelChanged(ui::ComboboxModel* model) OVERRIDE; 133 // Updates the combobox's content from its model. 168 // Our model. Not owned.
|
H A D | combobox_unittest.cc | 58 explicit TestCombobox(ui::ComboboxModel* model) argument 59 : Combobox(model), 132 // A combobox model which refers to a vector. 275 // Combobox does not take ownership of the model, hence it needs to be scoped. 491 TestComboboxModel model; local 494 TestCombobox* combobox = new TestCombobox(&model); 502 combobox = new TestCombobox(&model); 642 VectorComboboxModel model(&values); 643 TestCombobox combobox(&model);
|
/external/chromium_org/ui/views/controls/menu/ |
H A D | menu_2.cc | 12 Menu2::Menu2(ui::MenuModel* model) argument 13 : model_(model), 14 wrapper_(MenuWrapper::CreateWrapper(model)) {
|
H A D | menu_2.h | 24 // A menu. Populated from a model, and relies on a delegate to execute commands. 26 // WARNING: do NOT create and use Menu2 on the stack. Menu2 notifies the model 38 // Creates a new menu populated with the contents of |model|. 40 // the model. As such, it is typically not safe to use this as the model 44 explicit Menu2(ui::MenuModel* model); 56 // Called when the model supplying data to this menu has changed, and the menu 61 // from the model. 79 ui::MenuModel* model() const { return model_; } function in class:views::Menu2
|
H A D | menu_model_adapter.cc | 37 // allows the map to find the menu model of submenus being closed 55 MenuItemView* MenuModelAdapter::AddMenuItemFromModelAt(ui::MenuModel* model, argument 61 model->GetIconAt(model_index, &icon); 65 ui::MenuModel::ItemType menu_type = model->GetTypeAt(model_index); 70 label = model->GetLabelAt(model_index); 71 sublabel = model->GetSublabelAt(model_index); 72 minor_text = model->GetMinorTextAt(model_index); 76 label = model->GetLabelAt(model_index); 77 sublabel = model->GetSublabelAt(model_index); 78 minor_text = model 115 AppendMenuItemFromModel(ui::MenuModel* model, int model_index, MenuItemView* menu, int item_id) argument 125 AppendMenuItem(MenuItemView* menu, ui::MenuModel* model, int index) argument 135 ui::MenuModel* model = menu_model_; local 146 ui::MenuModel* model = menu_model_; local 165 ui::MenuModel* model = menu_model_; local 175 ui::MenuModel* model = menu_model_; local 185 ui::MenuModel* model = menu_model_; local 198 ui::MenuModel* model = menu_model_; local 208 ui::MenuModel* model = menu_model_; local 218 ui::MenuModel* model = menu_model_; local 233 ui::MenuModel* model = menu_model_; local 269 BuildMenuImpl(MenuItemView* menu, ui::MenuModel* model) argument [all...] |
H A D | menu_model_adapter_unittest.cc | 202 // Build model and adapter. 203 RootModel model; local 204 views::MenuModelAdapter delegate(&model); 219 const MenuModelBase::Item& model_item = model.GetItemDefinition(i); 252 EXPECT_EQ(i, model.last_activation()); 253 model.set_last_activation(-1); 263 model.GetSubmenuModelAt(3));
|
H A D | native_menu_win.cc | 63 // The index of the item within the menu's model. 149 ui::MenuModel* model = menu_win->model_; local 154 // Only notify the model if it didn't already send out notification. 157 model->ActivatedAt(position); 393 NativeMenuWin::NativeMenuWin(ui::MenuModel* model, HWND system_menu_for) argument 394 : model_(model), 589 // schedule a task to notify the model. It's still possible to get a 590 // WM_MENUCOMMAND, so we have to be careful that we don't notify the model 762 MenuWrapper* MenuWrapper::CreateWrapper(ui::MenuModel* model) { argument 763 return new NativeMenuWin(model, NUL [all...] |
/external/chromium_org/ui/views/controls/table/ |
H A D | table_utils.cc | 22 ui::TableModel* model) { 28 for (int i = 0, row_count = model->RowCount(); i < row_count; ++i) { 30 gfx::GetStringWidth(model->GetText(i, column.id), content_font_list); 44 ui::TableModel* model) { 59 model); 17 WidthForContent(const gfx::FontList& header_font_list, const gfx::FontList& content_font_list, int padding, int header_padding, const ui::TableColumn& column, ui::TableModel* model) argument 36 CalculateTableColumnSizes( int width, int first_column_padding, const gfx::FontList& header_font_list, const gfx::FontList& content_font_list, int padding, int header_padding, const std::vector<ui::TableColumn>& columns, ui::TableModel* model) argument
|
H A D | table_view.cc | 86 // in the group and within the groups we keep the same order as the model. 118 TableView::TableView(ui::TableModel* model, argument 139 SetModel(model); 147 // TODO: this doesn't support arbitrarily changing the model, rename this to 149 void TableView::SetModel(ui::TableModel* model) { argument 150 if (model == model_) 155 model_ = model; 435 // model has changed but |model_to_view_| has not been updated yet. 811 ui::ListSelectionModel* model) const { 818 SelectRowsInRangeFrom(view_index, true, model); [all...] |
H A D | table_view.h | 19 // TableView is driven by a TableModel. The model returns the contents 21 // TableView of changes to the model so that the display may be updated 27 // When a table is sorted the model coordinates do not necessarily match the 28 // view coordinates. All table methods are in terms of the model. If you need to 86 // Creates a new table using the model and columns specified. 89 TableView(ui::TableModel* model, 95 // Assigns a new model to the table view, detaching the old one if present. 96 // If |model| is NULL, the table view cannot be used after this call. This 98 // issues when the model needs to be deleted before the table. 99 void SetModel(ui::TableModel* model); 100 ui::TableModel* model() const { return model_; } function in class:views::TableView [all...] |
H A D | table_view_unittest.cc | 130 // Returns the view to model mapping as a string. 141 // Returns the model to view mapping as a string. 154 TestTableView(ui::TableModel* model, argument 156 : TableView(model, columns, TEXT_ONLY, false) { 206 // Returns the state of the selection model as a string. The format is: 209 const ui::ListSelectionModel& model(table_->selection_model()); 210 std::string result = "active=" + base::IntToString(model.active()) + 211 " anchor=" + base::IntToString(model.anchor()) + 214 model.selected_indices()); 363 // Add a row so that model ha [all...] |
/external/chromium_org/ui/views/controls/textfield/ |
H A D | textfield_model.cc | 33 // Revert the change made by this edit in |model|. 34 void Undo(TextfieldModel* model) { argument 35 model->ModifyText(new_text_start_, new_text_end(), 40 // Apply the change of this edit to the |model|. 41 void Redo(TextfieldModel* model) { argument 42 model->ModifyText(old_text_start_, old_text_end(), 653 const gfx::SelectionModel& model = render_text_->selection_model(); local 658 if (next == model.caret_pos()) 659 render_text_->MoveCursorTo(model); 661 render_text_->SelectRange(gfx::Range(next, model [all...] |
H A D | textfield_model_unittest.cc | 37 void MoveCursorTo(views::TextfieldModel& model, size_t pos) { argument 38 model.MoveCursorTo(gfx::SelectionModel(pos, gfx::CURSOR_FORWARD)); 58 void ResetModel(TextfieldModel* model) const { 59 model->SetText(base::string16()); 60 model->ClearEditHistory(); 70 TextfieldModel model(NULL); 72 model.Append(base::ASCIIToUTF16("HILL")); 73 EXPECT_STR_EQ("HILL", model.text()); 74 model.Append(base::ASCIIToUTF16("WORLD")); 75 EXPECT_STR_EQ("HILLWORLD", model 550 SelectWordTestVerifier( const TextfieldModel& model, const base::string16 &expected_selected_string, size_t expected_cursor_pos) argument 1328 RunInsertReplaceTest(TextfieldModel& model) argument 1351 RunOverwriteReplaceTest(TextfieldModel& model) argument [all...] |
H A D | textfield_test_api.h | 25 TextfieldModel* model() const { return textfield_->model_.get(); } function in class:views::TextfieldTestApi
|
/external/chromium_org/ui/views/controls/tree/ |
H A D | tree_view.cc | 109 void TreeView::SetModel(TreeModel* model) { argument 110 if (model == model_) 117 model_ = model; 421 void TreeView::TreeNodesAdded(TreeModel* model, argument 438 void TreeView::TreeNodesRemoved(TreeModel* model, argument 470 void TreeView::TreeNodeChanged(TreeModel* model, TreeModelNode* model_node) { argument
|
H A D | tree_view.h | 52 // Sets the model. TreeView does not take ownership of the model. 53 void SetModel(ui::TreeModel* model); 54 ui::TreeModel* model() const { return model_; } function in class:views::TreeView 135 virtual void TreeNodesAdded(ui::TreeModel* model, 139 virtual void TreeNodesRemoved(ui::TreeModel* model, 143 virtual void TreeNodeChanged(ui::TreeModel* model, 189 // The model node this InternalNode represents. 213 // The node from the model. 254 // Configures an InternalNode from a node from the model [all...] |
/external/chromium_org/ui/views/examples/ |
H A D | label_example.cc | 205 ExampleComboboxModel* model = new ExampleComboboxModel(strings, count); local 206 example_combobox_models_.push_back(model); 207 Combobox* combobox = new Combobox(model);
|
H A D | text_example.cc | 134 ExampleComboboxModel* model = new ExampleComboboxModel(strings, count); local 135 example_combobox_model_.push_back(model); 136 Combobox* combobox = new Combobox(model);
|
/external/chromium_org/ui/views/ |
H A D | view_model_unittest.cc | 15 // Returns a string containing the x-coordinate of each of the views in |model|. 16 std::string BoundsString(const ViewModel& model) { argument 18 for (int i = 0; i < model.view_size(); ++i) { 21 result += base::IntToString(model.ideal_bounds(i).x()); 26 // Returns a string containing the id of each of the views in |model|. 27 std::string ViewIDsString(const ViewModel& model) { argument 29 for (int i = 0; i < model.view_size(); ++i) { 32 result += base::IntToString(model.view_at(i)->id()); 41 ViewModel model; local 42 model 56 ViewModel model; local 72 ViewModel model; local [all...] |
H A D | view_model_utils.cc | 26 void ViewModelUtils::SetViewBoundsToIdealBounds(const ViewModel& model) { argument 27 for (int i = 0; i < model.view_size(); ++i) 28 model.view_at(i)->SetBoundsRect(model.ideal_bounds(i)); 32 bool ViewModelUtils::IsAtIdealBounds(const ViewModel& model) { argument 33 for (int i = 0; i < model.view_size(); ++i) { 34 View* view = model.view_at(i); 35 if (view->bounds() != model.ideal_bounds(i)) 42 int ViewModelUtils::DetermineMoveIndex(const ViewModel& model, argument 48 int current_index = model [all...] |
H A D | view_model_utils_unittest.cc | 16 ViewModel model; local 17 model.Add(&v1, 0); 19 model.set_ideal_bounds(0, v1_bounds); 20 ViewModelUtils::SetViewBoundsToIdealBounds(model); 27 ViewModel model; local 28 model.Add(&v1, 0); 29 model.Add(&v2, 1); 30 model.Add(&v3, 2); 31 model.set_ideal_bounds(0, gfx::Rect(0, 0, 10, 10)); 32 model [all...] |
/external/chromium_org/third_party/expat/files/lib/ |
H A D | xmlparse.c | 281 /* === scaffolding for building content model === */ 1890 XML_FreeContentModel(XML_Parser parser, XML_Content *model) argument 1892 FREE(model); 4658 XML_Content *model = build_model(parser); local 4659 if (!model) 4662 elementDeclHandler(handlerArg, declElementType->name, model);
|