Searched refs:model (Results 1 - 25 of 1093) sorted by relevance

1234567891011>>

/external/chromium_org/ui/base/models/
H A Dlist_selection_model_unittest.cc17 // Returns the state of the selection model as a string. The format is:
19 static std::string StateAsString(const ListSelectionModel& model) { argument
20 std::string result = "active=" + base::IntToString(model.active()) +
21 " anchor=" + base::IntToString(model.anchor()) +
24 model.selected_indices());
34 ListSelectionModel model; local
35 EXPECT_EQ("active=-1 anchor=-1 selection=", StateAsString(model));
36 EXPECT_TRUE(model.empty());
40 ListSelectionModel model; local
41 model
47 ListSelectionModel model; local
54 ListSelectionModel model; local
66 ListSelectionModel model; local
84 ListSelectionModel model; local
91 ListSelectionModel model; local
100 ListSelectionModel model; local
113 ListSelectionModel model; local
129 ListSelectionModel model; local
137 ListSelectionModel model; local
148 ListSelectionModel model; local
159 ListSelectionModel model; local
170 ListSelectionModel model; local
[all...]
H A Dlist_model_unittest.cc73 ListModel<FooItem> model; local
74 model.AddObserver(this);
77 model.Add(new FooItem(0));
81 model.Add(new FooItem(1));
85 model.AddAt(0, new FooItem(2));
88 // Total 3 items in model.
89 EXPECT_EQ(3U, model.item_count());
92 EXPECT_EQ(2, model.GetItemAt(0)->id());
93 EXPECT_EQ(0, model.GetItemAt(1)->id());
94 EXPECT_EQ(1, model
98 ListModel<FooItem> model; local
121 ListModel<FooItem> model; local
140 ListModel<FooItem> model; local
158 ListModel<FooItem> model; local
[all...]
/external/chromium_org/tools/deep_memory_profiler/visualizer/static/
H A Dprofiler_unittest.js6 * Test whether given model is valid.
7 * @param {Object} model
10 var modelIsValid = function(model) {
12 if (!('name' in model) || !('id' in model))
16 if ('children' in model && 'size' in model ||
17 !('children' in model) && !('size' in model))
21 if ('subs' in model
[all...]
/external/chromium-trace/trace-viewer/src/tracing/tracks/
H A Dtrace_model_track.css5 .model-track {
/external/chromium_org/ui/views/
H A Dview_model_unittest.cc15 // 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 Dview_model_utils_unittest.cc16 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...]
H A Dview_model_utils.cc26 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...]
/external/chromium_org/ui/views/controls/textfield/
H A Dtextfield_model_unittest.cc37 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...]
/external/chromium_org/chrome/browser/extensions/api/processes/
H A Dprocesses_apitest.cc22 TaskManagerModel* model = TaskManager::GetInstance()->model(); local
23 EXPECT_EQ(0, model->update_requests_);
24 EXPECT_EQ(TaskManagerModel::IDLE, model->update_state_);
33 EXPECT_EQ(1, model->update_requests_);
34 EXPECT_EQ(TaskManagerModel::TASK_PENDING, model->update_state_);
39 EXPECT_EQ(2, model->update_requests_);
40 EXPECT_EQ(TaskManagerModel::TASK_PENDING, model->update_state_);
44 EXPECT_EQ(1, model->update_requests_);
/external/chromium_org/tools/telemetry/telemetry/timeline/
H A Dmodel_unittest.py7 from telemetry.timeline import model namespace
13 model.TimelineModel(
15 model.TimelineModel(
/external/chromium_org/chrome/browser/ui/toolbar/
H A Drecent_tabs_sub_menu_model_unittest.cc78 explicit TestRecentTabsMenuModelDelegate(ui::MenuModel* model) argument
79 : model_(model),
171 TestRecentTabsSubMenuModel model(NULL, browser(), NULL);
180 int num_items = model.GetItemCount();
182 EXPECT_FALSE(model.IsEnabledAt(0));
183 EXPECT_FALSE(model.IsEnabledAt(2));
184 EXPECT_EQ(0, model.enable_count());
186 EXPECT_EQ(NULL, model.GetLabelFontListAt(0));
187 EXPECT_EQ(NULL, model.GetLabelFontListAt(1));
188 EXPECT_EQ(NULL, model
[all...]
/external/chromium_org/components/autofill/core/browser/
H A Dautofill_data_model_unittest.cc36 TestAutofillDataModel model("guid", std::string());
37 EXPECT_FALSE(model.IsVerified());
39 model.set_origin("http://www.example.com");
40 EXPECT_FALSE(model.IsVerified());
42 model.set_origin("https://www.example.com");
43 EXPECT_FALSE(model.IsVerified());
45 model.set_origin("file:///tmp/example.txt");
46 EXPECT_FALSE(model.IsVerified());
48 model.set_origin("data:text/plain;charset=utf-8;base64,ZXhhbXBsZQ==");
49 EXPECT_FALSE(model
[all...]
/external/chromium_org/chrome/browser/ui/views/frame/
H A Dsystem_menu_model_builder.cc38 ui::SimpleMenuModel* model = new ui::SimpleMenuModel(&menu_delegate_); local
39 menu_model_.reset(model);
40 BuildMenu(model);
46 model->AddSeparator(ui::NORMAL_SEPARATOR);
50 void SystemMenuModelBuilder::BuildMenu(ui::SimpleMenuModel* model) { argument
54 BuildSystemMenuForBrowserWindow(model);
56 BuildSystemMenuForAppOrPopupWindow(model);
57 AddFrameToggleItems(model);
61 ui::SimpleMenuModel* model) {
62 model
60 BuildSystemMenuForBrowserWindow( ui::SimpleMenuModel* model) argument
78 BuildSystemMenuForAppOrPopupWindow( ui::SimpleMenuModel* model) argument
114 AddFrameToggleItems(ui::SimpleMenuModel* model) argument
123 AppendTeleportMenu(ui::SimpleMenuModel* model) argument
[all...]
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/
H A DTabModelUtils.java18 * @param model The {@link TabModel} to act on.
22 public static boolean closeTabByIndex(TabModel model, int index) { argument
23 Tab tab = model.getTabAt(index);
26 return model.closeTab(tab);
30 * @param model The {@link TabModel} to act on.
34 public static boolean closeTabById(TabModel model, int tabId) { argument
35 return closeTabById(model, tabId, false);
39 * @param model The {@link TabModel} to act on.
44 public static boolean closeTabById(TabModel model, int tabId, boolean canUndo) { argument
45 Tab tab = TabModelUtils.getTabById(model, tabI
55 closeCurrentTab(TabModel model) argument
69 getTabIndexById(TabList model, int tabId) argument
86 getTabById(TabList model, int tabId) argument
98 getTabIndexByUrl(TabList model, String url) argument
113 getCurrentTabId(TabList model) argument
125 getCurrentTab(TabList model) argument
137 getCurrentContentViewCore(TabList model) argument
150 setIndex(TabModel model, int index) argument
[all...]
/external/chromium_org/chrome/browser/profiles/
H A Dbookmark_model_loaded_observer.cc17 void BookmarkModelLoadedObserver::BookmarkModelLoaded(BookmarkModel* model, argument
21 model->RemoveObserver(this);
26 BookmarkModel* model) {
27 model->RemoveObserver(this);
25 BookmarkModelBeingDeleted( BookmarkModel* model) argument
/external/junit/src/org/junit/runners/model/
H A DStatement.java4 package org.junit.runners.model;
/external/chromium_org/chrome/browser/ui/autofill/
H A Daccount_chooser_model_unittest.cc55 TestAccountChooserModel* model() { return &model_; } function in class:autofill::__anon5012::AccountChooserModelTest
72 TestAccountChooserModel model(delegate(),
76 EXPECT_TRUE(model.WalletIsSelected());
82 TestAccountChooserModel model(delegate(),
86 EXPECT_FALSE(model.WalletIsSelected());
93 TestAccountChooserModel model(delegate(), profile(), true, metric_logger());
94 EXPECT_FALSE(model.WalletIsSelected());
104 TestAccountChooserModel model(
106 EXPECT_FALSE(model.WalletIsSelected());
113 EXPECT_TRUE(model()
[all...]
/external/chromium_org/chrome/browser/task_manager/
H A Dtask_manager_unittest.cc69 TaskManagerModel* model = task_manager.model_.get(); local
70 EXPECT_EQ(0, model->ResourceCount());
75 TaskManagerModel* model = task_manager.model_.get(); local
80 ASSERT_EQ(1, model->ResourceCount());
81 EXPECT_TRUE(model->IsResourceFirstInGroup(0));
82 EXPECT_EQ(ASCIIToUTF16("test title"), model->GetResourceTitle(0));
83 EXPECT_EQ(ASCIIToUTF16("test profile"), model->GetResourceProfileName(0));
85 model->GetResourceNetworkUsage(0));
86 EXPECT_EQ(ASCIIToUTF16(kZeroCPUUsage), model->GetResourceCPUUsage(0));
89 ASSERT_EQ(2, model
116 TaskManagerModel* model = task_manager.model_.get(); local
[all...]
/external/chromium_org/components/bookmarks/browser/
H A Dbookmark_model_observer.h17 // Invoked when the model has finished loading. |ids_reassigned| mirrors
19 virtual void BookmarkModelLoaded(BookmarkModel* model,
23 virtual void BookmarkModelBeingDeleted(BookmarkModel* model) {} argument
26 virtual void BookmarkNodeMoved(BookmarkModel* model,
33 virtual void BookmarkNodeAdded(BookmarkModel* model,
41 virtual void OnWillRemoveBookmarks(BookmarkModel* model, argument
53 virtual void BookmarkNodeRemoved(BookmarkModel* model,
60 virtual void OnWillChangeBookmarkNode(BookmarkModel* model, argument
64 virtual void BookmarkNodeChanged(BookmarkModel* model,
68 virtual void OnWillChangeBookmarkMetaInfo(BookmarkModel* model, argument
72 BookmarkMetaInfoChanged(BookmarkModel* model, const BookmarkNode* node) argument
81 OnWillReorderBookmarkNode(BookmarkModel* model, const BookmarkNode* node) argument
95 ExtensiveBookmarkChangesBeginning(BookmarkModel* model) argument
100 ExtensiveBookmarkChangesEnded(BookmarkModel* model) argument
104 OnWillRemoveAllUserBookmarks(BookmarkModel* model) argument
117 GroupedBookmarkChangesBeginning(BookmarkModel* model) argument
121 GroupedBookmarkChangesEnded(BookmarkModel* model) argument
[all...]
H A Dbase_bookmark_model_observer.cc7 void BaseBookmarkModelObserver::BookmarkModelLoaded(BookmarkModel* model, argument
11 BookmarkModel* model) {
16 BookmarkModel* model,
24 void BaseBookmarkModelObserver::BookmarkNodeAdded(BookmarkModel* model, argument
31 BookmarkModel* model,
40 BookmarkModel* model,
45 void BaseBookmarkModelObserver::BookmarkNodeChanged(BookmarkModel* model, argument
51 BookmarkModel* model,
56 BookmarkModel* model,
10 BookmarkModelBeingDeleted( BookmarkModel* model) argument
15 BookmarkNodeMoved( BookmarkModel* model, const BookmarkNode* old_parent, int old_index, const BookmarkNode* new_parent, int new_index) argument
30 BookmarkNodeRemoved( BookmarkModel* model, const BookmarkNode* parent, int old_index, const BookmarkNode* node, const std::set<GURL>& removed_urls) argument
39 BookmarkAllUserNodesRemoved( BookmarkModel* model, const std::set<GURL>& removed_urls) argument
50 BookmarkNodeFaviconChanged( BookmarkModel* model, const BookmarkNode* node) argument
55 BookmarkNodeChildrenReordered( BookmarkModel* model, const BookmarkNode* node) argument
H A Dscoped_group_bookmark_actions.cc11 ScopedGroupBookmarkActions::ScopedGroupBookmarkActions(BookmarkModel* model) argument
12 : model_(model) {
/external/chromium-trace/trace-viewer/src/tracing/
H A Dtrace_model_settings_test.js13 var model = new tracing.TraceModel();
14 var p1 = model.getOrCreateProcess(1);
15 var settings = new tracing.TraceModelSettings(model);
20 var model = new tracing.TraceModel();
21 var p1 = model.getOrCreateProcess(1);
23 var settings = new tracing.TraceModelSettings(model);
28 var model = new tracing.TraceModel();
29 var p1 = model.getOrCreateProcess(1);
30 var p2 = model.getOrCreateProcess(2);
33 var settings = new tracing.TraceModelSettings(model);
[all...]
/external/chromium-trace/trace-viewer/src/tracing/trace_model/
H A Dprocess_test.js13 var model = new tracing.TraceModel();
14 var process = new tracing.trace_model.Process(model, 7);
21 var model = new tracing.TraceModel();
22 var process = new tracing.trace_model.Process(model, 7);
40 var model = new tracing.TraceModel();
41 var p1 = new tracing.trace_model.Process(model, 1);
44 var model = new tracing.TraceModel();
45 var p2 = new tracing.trace_model.Process(model, 2);
52 var model = new tracing.TraceModel();
53 var p1 = new tracing.trace_model.Process(model,
[all...]
/external/chromium_org/chrome/browser/android/provider/
H A Dbookmark_model_observer_task.cc12 BookmarkModelTask::BookmarkModelTask(BookmarkModel* model) argument
13 : model_(model) {
14 // Ensure the initialization of the native bookmark model.
20 BookmarkModel* BookmarkModelTask::model() const { function in class:BookmarkModelTask
27 model()->AddObserver(this);
31 model()->RemoveObserver(this);
34 void BookmarkModelObserverTask::BookmarkModelLoaded(BookmarkModel* model, argument
38 BookmarkModel* model,
45 void BookmarkModelObserverTask::BookmarkNodeAdded(BookmarkModel* model, argument
51 BookmarkModel* model,
37 BookmarkNodeMoved( BookmarkModel* model, const BookmarkNode* old_parent, int old_index, const BookmarkNode* new_parent, int new_index) argument
50 BookmarkNodeRemoved( BookmarkModel* model, const BookmarkNode* parent, int old_index, const BookmarkNode* node, const std::set<GURL>& removed_urls) argument
58 BookmarkAllUserNodesRemoved( BookmarkModel* model, const std::set<GURL>& removed_urls) argument
63 BookmarkNodeChanged(BookmarkModel* model, const BookmarkNode* node) argument
67 BookmarkNodeFaviconChanged( BookmarkModel* model, const BookmarkNode* node) argument
72 BookmarkNodeChildrenReordered( BookmarkModel* model, const BookmarkNode* node) argument
[all...]
/external/chromium_org/chrome/browser/ui/passwords/
H A Dmanage_passwords_bubble.cc13 model()->OnBubbleShown(reason);
17 model()->OnBubbleHidden();

Completed in 554 milliseconds

1234567891011>>