Searched refs:snippet (Results 1 - 25 of 38) sorted by relevance

12

/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowOverlayItem.java16 private String snippet; field in class:ShadowOverlayItem
18 public void __constructor__(GeoPoint geoPoint, String title, String snippet) { argument
21 this.snippet = snippet;
36 return snippet;
50 && Strings.equals(snippet, that.snippet)
59 result = snippet == null ? result : 19 * result + snippet.hashCode();
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
H A DSnippetStorage.js101 * @param {WebInspector.Snippet} snippet
103 deleteSnippet: function(snippet)
105 delete this._snippets[snippet.id];
117 var snippet = new WebInspector.Snippet(this, snippetId);
118 this._snippetAdded(snippet);
120 return snippet;
124 * @param {WebInspector.Snippet} snippet
126 _snippetAdded: function(snippet)
128 this._snippets[snippet.id] = snippet;
[all...]
H A DScriptSnippetModel.js48 this._snippetStorage = new WebInspector.SnippetStorage("script", "Script snippet #");
86 var snippet = this._snippetStorage.createSnippet();
87 return this._addScriptSnippet(snippet);
91 * @param {WebInspector.Snippet} snippet
94 _addScriptSnippet: function(snippet)
96 var path = this._projectDelegate.addSnippet(snippet.name, new WebInspector.SnippetContentProvider(snippet));
100 this._snippetIdForUISourceCode.put(uiSourceCode, snippet.id);
102 this._uiSourceCodeForSnippetId[snippet.id] = uiSourceCode;
113 var snippet
[all...]
H A DAuditFormatters.js44 snippet: function(snippetText)
H A DscriptsPanel.css50 .evaluate-snippet-status-bar-item .glyph {
54 .evaluate-snippet-status-bar-item.toggled .glyph {
79 .scripts-run-snippet .glyph {
H A DAuditsPanel.js410 * @param {string} snippet
412 addSnippet: function(snippet)
414 this.addChild(snippet, false, "source-code");
/external/chromium/chrome/browser/history/
H A Dsnippet_unittest.cc5 #include "chrome/browser/history/snippet.h"
88 // sqlite's FTS matching. BuildSnippet returns the snippet for matching
118 // Compute the snippet.
119 Snippet snippet; local
120 snippet.ComputeSnippet(match_positions, document);
122 // Now "highlight" all matches in the snippet with **.
126 for (match = snippet.matches().begin();
127 match != snippet.matches().end(); ++match) {
128 star_snippet += snippet.text().substr(pos, match->first - pos);
130 star_snippet += snippet
[all...]
H A Dsnippet.cc5 #include "chrome/browser/history/snippet.h"
128 // snippet generation. If not, revisit the way we scan in ComputeSnippet.
138 // Returns true if next match falls within a snippet window
227 // We build the snippet by iterating through the matches and then grabbing
230 string16 snippet; local
247 snippet += kEllipsis;
250 snippet += UTF8ToUTF16(document.substr(start, match_start - start));
254 const size_t first = snippet.size();
255 snippet += UTF8ToUTF16(document.substr(match_start,
257 matches_.push_back(std::make_pair(first, snippet
[all...]
H A Dtext_database.h46 // included in the snippet.
50 Snippet snippet; member in struct:history::TextDatabase::Match
H A Dtext_database_unittest.cc223 // We don't want to be dependent on the exact snippet algorithm, but we know
225 // document, that each snippet should start with that.
226 EXPECT_TRUE(StartsWithASCII(UTF16ToUTF8(results[0].snippet.text()),
228 EXPECT_TRUE(StartsWithASCII(UTF16ToUTF8(results[1].snippet.text()),
230 EXPECT_TRUE(StartsWithASCII(UTF16ToUTF8(results[2].snippet.text()),
H A Dtext_database.cc362 // Compute the snippet based on those matches.
364 match.snippet.ComputeSnippet(match_positions, body);
H A Dhistory_types.h20 #include "chrome/browser/history/snippet.h"
345 const Snippet& snippet() const { return snippet_; } function in class:history::URLResult
/external/chromium_org/chrome/browser/history/
H A Dsnippet_unittest.cc5 #include "chrome/browser/history/snippet.h"
88 // sqlite's FTS matching. BuildSnippet returns the snippet for matching
118 // Compute the snippet.
119 Snippet snippet; local
120 snippet.ComputeSnippet(match_positions, document);
122 // Now "highlight" all matches in the snippet with **.
126 for (match = snippet.matches().begin();
127 match != snippet.matches().end(); ++match) {
128 star_snippet += snippet.text().substr(pos, match->first - pos);
130 star_snippet += snippet
[all...]
H A Dsnippet.cc5 #include "chrome/browser/history/snippet.h"
128 // snippet generation. If not, revisit the way we scan in ComputeSnippet.
138 // Returns true if next match falls within a snippet window
227 // We build the snippet by iterating through the matches and then grabbing
230 string16 snippet; local
247 snippet += kEllipsis;
250 snippet += UTF8ToUTF16(document.substr(start, match_start - start));
254 const size_t first = snippet.size();
255 snippet += UTF8ToUTF16(document.substr(match_start,
257 matches_.push_back(std::make_pair(first, snippet
[all...]
/external/chromium_org/tools/gen_keyboard_overlay_data/
H A Dgen_keyboard_overlay_data.py168 # A snippet for grd file
174 # A snippet for C++ file
427 def OutputFile(outpath, snippet):
428 """Output the snippet into the specified path."""
431 out.write(snippet)
435 def RewriteFile(start, end, original_dir, original_filename, snippet,
437 """Replaces a part of the specified file with snippet and outputs it."""
449 new_content = re.sub(rx, '%s\n%s%s\n' % (start, snippet, end),
475 snippet = 'var %s = %s;\n' % (var_name, json_data)
476 OutputFile(outpath, snippet)
[all...]
/external/chromium_org/third_party/WebKit/Source/core/platform/
H A DSharedBuffer.cpp91 char* snippet = 0; local
93 CString result = CString::newUninitialized(snippetLength, snippet);
99 memcpy(snippet + offset, segment, length);
106 if (!isASCIIPrintable(snippet[i]))
107 snippet[i] = '?';
123 CString snippet = snippetForBuffer(buffers[i]); local
124 dataLogF("Buffer size=%8u %s\n", buffers[i]->size(), snippet.data());
/external/chromium_org/chrome/browser/ui/webui/
H A Dhistory_ui.h42 bool is_search_result, const string16& snippet,
79 // The entry's search snippet, if this entry is a search result.
80 string16 snippet; member in struct:BrowsingHistoryHandler::HistoryEntry
H A Dhistory_ui.cc280 const string16& snippet, bool blocked_visit) {
288 this->snippet = snippet;
344 // and snippet, browse results need day and time information).
346 result->SetString("snippet", snippet);
757 page.snippet().text(),
276 HistoryEntry( BrowsingHistoryHandler::HistoryEntry::EntryType entry_type, const GURL& url, const string16& title, base::Time time, const std::string& client_id, bool is_search_result, const string16& snippet, bool blocked_visit) argument
/external/chromium_org/chromeos/docs/
H A Donc_spec.css46 .snippet {
/external/chromium_org/third_party/sqlite/src/ext/fts1/
H A Dfts1.c202 /* TODO(shess) The snippet-generation code should be using the
1111 Snippet snippet; /* Cached snippet for the current row */ member in struct:fulltext_cursor
1827 ** and snippet delimiters specification.
2178 Snippet *p, /* Append the entry to this snippet */
2290 if( p->snippet.nMatch ) return;
2307 snippetOffsetsOfColumn(&p->q, &p->snippet, i, zDoc, nDoc);
2312 ** Convert the information in the aMatch[] array of the snippet
2403 #define SNIPPET_IGNORE 0 /* It is ok to omit this match from the snippet */
2404 #define SNIPPET_DESIRED 1 /* We want to include this match in the snippet */
[all...]
/external/bison/lib/
H A Dgnulib.mk1536 ## begin gnulib module snippet/_Noreturn
1538 # Because this Makefile snippet defines a variable used by other
1542 _NORETURN_H=$(top_srcdir)/build-aux/snippet/_Noreturn.h
1544 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/_Noreturn.h
1546 ## end gnulib module snippet/_Noreturn
1548 ## begin gnulib module snippet/arg-nonnull
1550 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
1551 # statements but through direct file reference. Therefore this snippet must be
1557 # build-aux/snippet/arg-nonnull.h, except that it has the copyright header cut
1559 arg-nonnull.h: $(top_srcdir)/build-aux/snippet/ar
[all...]
/external/chromium_org/chrome/browser/resources/history/
H A Dhistory_mobile.css90 .snippet {
/external/chromium_org/third_party/WebKit/Source/wtf/text/
H A DStringImpl.cpp77 static void fillWithSnippet(const StringImpl* string, Vector<char>& snippet) argument
80 snippet.clear();
86 snippet.reserveCapacity(expectedLength);
92 snippet.append(c);
94 snippet.append('?');
97 snippet.append('.');
98 snippet.append('.');
99 snippet.append('.');
101 snippet.append('\0');
/external/chromium/chrome/browser/ui/webui/
H A Dhistory2_ui.cc265 // and snippet, browse results need day and time information).
284 page_value->SetString("snippet", page.snippet().text());
H A Dhistory_ui.cc265 // and snippet, browse results need day and time information).
284 page_value->SetString("snippet", page.snippet().text());

Completed in 371 milliseconds

12