/external/chromium_org/ash/wm/workspace/ |
H A D | magnetism_matcher_unittest.cc | 11 // Trivial test case verifying assertions on left edge. 17 MatchedEdge edge; local 20 initial_bounds.y() - distance - 10, 2, 3), &edge)); 24 &edge)); 25 EXPECT_EQ(MAGNETISM_EDGE_LEFT, edge.primary_edge); 26 EXPECT_EQ(SECONDARY_MAGNETISM_EDGE_LEADING, edge.secondary_edge); 31 &edge)); 32 EXPECT_EQ(MAGNETISM_EDGE_LEFT, edge.primary_edge); 33 EXPECT_EQ(SECONDARY_MAGNETISM_EDGE_NONE, edge.secondary_edge); 36 // Trivial test case verifying assertions on bottom edge 42 MatchedEdge edge; local 71 MatchedEdge edge; local 100 MatchedEdge edge; local 123 MatchedEdge edge; local 148 MatchedEdge edge; local [all...] |
H A D | magnetism_matcher.cc | 19 // primary edge of |primary|. |edges| is a bitmask of the allowed 54 MagnetismEdge edge) 56 edge_(edge) { 72 // Close enough, but only attach if some portion of the edge is visible. 141 MatchedEdge* edge) { 144 edge->primary_edge = matchers_[i]->edge(); 145 AttachToSecondaryEdge(bounds, edge->primary_edge, 146 &(edge->secondary_edge)); 163 MagnetismEdge edge, 53 MagnetismEdgeMatcher(const gfx::Rect& bounds, MagnetismEdge edge) argument 140 ShouldAttach(const gfx::Rect& bounds, MatchedEdge* edge) argument 161 AttachToSecondaryEdge( const gfx::Rect& bounds, MagnetismEdge edge, SecondaryMagnetismEdge* secondary_edge) const argument [all...] |
H A D | magnetism_matcher.h | 30 // MagnetismEdgeMatcher is used for matching a particular edge of a window. You 34 // edge. As ShouldAttach() is invoked the visible range is updated. 37 MagnetismEdgeMatcher(const gfx::Rect& bounds, MagnetismEdge edge); 40 MagnetismEdge edge() const { return edge_; } function in class:ash::MagnetismEdgeMatcher 43 // Returns true if the edge is completely obscured. If true ShouldAttach() 57 static int GetPrimaryCoordinate(const gfx::Rect& bounds, MagnetismEdge edge) { argument 58 switch (edge) { 72 static MagnetismEdge FlipEdge(MagnetismEdge edge) { argument 73 switch (edge) { 120 // The edge thi [all...] |
/external/chromium_org/chrome/browser/ui/views/app_list/linux/ |
H A D | app_list_linux.cc | 17 // desktop environments). The shelf can usually be found on the edge where the 18 // display edge and work area do not match up, but there can be more than one 19 // such edge. The shelf is assumed to be on the side of the screen with the 20 // largest delta between the display edge and the work area edge. Ties are 56 AppListPositioner::ScreenEdge edge, 65 // Snap to the shelf edge. If the cursor is greater than the window 68 if (edge == AppListPositioner::SCREEN_EDGE_UNKNOWN) { 74 int snap_distance = edge == AppListPositioner::SCREEN_EDGE_BOTTOM || 75 edge 53 FindAnchorPoint(const gfx::Size& view_size, const gfx::Display& display, const gfx::Point& cursor, AppListPositioner::ScreenEdge edge, bool center_window) argument 93 AppListPositioner::ScreenEdge edge; local [all...] |
H A D | app_list_linux_unittest.cc | 40 // edge of the screen. This must be < kWindowWidth / 2 and < kWindowHeight / 2. 64 // Sets up the test environment with the shelf along a given edge of the 66 void PlaceShelf(AppListPositioner::ScreenEdge edge) { argument 67 switch (edge) { 236 // Bottom shelf. Mouse near left edge. App list must not go off screen. 243 // Bottom shelf. Mouse near right edge. App list must not go off screen.
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/shapes/ |
H A D | PolygonShape.h | 41 OffsetPolygonEdge(const FloatPolygonEdge& edge, const FloatSize& offset) argument 42 : m_vertex1(edge.vertex1() + offset) 43 , m_vertex2(edge.vertex2() + offset)
|
H A D | PolygonShape.cpp | 38 static inline FloatSize inwardEdgeNormal(const FloatPolygonEdge& edge) argument 40 FloatSize edgeDelta = edge.vertex2() - edge.vertex1(); 49 static inline FloatSize outwardEdgeNormal(const FloatPolygonEdge& edge) argument 51 return -inwardEdgeNormal(edge); 78 // Clip the edge line segment to the vertical range y1,y2 and then return 137 const FloatPolygonEdge& edge = *(overlappingEdges[i]); local 138 if (edge.maxY() == edge.minY()) 141 excludedInterval.unite(OffsetPolygonEdge(edge, FloatSiz [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
H A D | u_split_prim.h | 14 void (*edge)(void *priv, boolean enabled); member in struct:util_split_prim 53 s->edge(s->priv, TRUE); 75 s->edge(s->priv, FALSE);
|
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_split_prim.h | 14 void (*edge)(void *priv, boolean enabled); member in struct:util_split_prim 53 s->edge(s->priv, TRUE); 75 s->edge(s->priv, FALSE);
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
H A D | DOTGenerator.java | 131 // make a DOT edge for each transition 133 Transition edge = (Transition) s.transition(i); 136 " edge from s"+s.stateNumber+" ["+i+"] of "+s.getNumberOfTransitions()); 139 if ( edge.target instanceof DFAState && 140 ((DFAState)edge.target).getAcceptStateReachable()!=DFA.REACHABLE_YES ) 145 st = stlib.getInstanceOf("edge"); 146 st.add("label", getEdgeLabel(edge)); 148 st.add("target", getStateLabel(edge.target)); 151 walkCreatingDFADOT(dot, (DFAState)edge.target); // keep walkin' 205 // make a DOT edge fo 284 getEdgeLabel(Transition edge) argument [all...] |
/external/chromium_org/third_party/skia/src/effects/gradients/ |
H A D | SkClampRange.cpp | 13 * returns [0..count] for the number of steps (<= count) for which x0 <= edge 16 static int chop(int64_t x0, SkFixed edge, int64_t x1, int64_t dx, int count) { argument 20 if (x0 >= edge) { 23 if (x1 <= edge) { 26 int64_t n = (edge - x0 + dx - 1) / dx;
|
/external/opencv/cvaux/src/ |
H A D | cvsubdiv2.cpp | 59 CvQuadEdge2D* edge = (CvQuadEdge2D*)cvGetSetElem(subdiv->edges,i); local 61 if( edge && CV_IS_SET_ELEM( edge )) 65 CvSubdiv2DEdge e = (CvSubdiv2DEdge)edge + j; 107 draw_subdiv_facet( CvSubdiv2D * subdiv, IplImage * dst, IplImage * src, CvSubdiv2DEdge edge ) 109 CvSubdiv2DEdge t = edge; 120 while( t != edge && count < subdiv->quad_edges * 4 ); 128 t = edge; 142 CvSubdiv2DPoint *pt = cvSubdiv2DEdgeDst( cvSubdiv2DRotateEdge( edge, 1 )); 173 CvQuadEdge2D *edge local [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/bwindow/ |
H A D | SDL_sysevents.cc | 195 BPoint edge; local 196 GetXYOffset(edge.x, edge.y); 197 edge.x += x; 198 edge.y += y; 199 ConvertToScreen(&edge); 200 set_mouse_position((int)edge.x, (int)edge.y);
|
/external/skia/src/effects/gradients/ |
H A D | SkClampRange.cpp | 13 * returns [0..count] for the number of steps (<= count) for which x0 <= edge 16 static int chop(int64_t x0, SkFixed edge, int64_t x1, int64_t dx, int count) { argument 20 if (x0 >= edge) { 23 if (x1 <= edge) { 26 int64_t n = (edge - x0 + dx - 1) / dx;
|
/external/ceres-solver/internal/ceres/ |
H A D | graph_algorithms.h | 266 // empty edge set. We then iterate over the edges of G in decreasing 309 // edge>. Sorting it using the reverse iterators gives us the edges 316 const pair<Vertex, Vertex>& edge = weighted_edges[i].second; local 317 const Vertex vertex1 = edge.first; 318 const Vertex vertex2 = edge.second; 321 // which case adding this edge will violate the degree 2 331 // vertex, and adding this edge will create a cycle. 339 // This edge can be added, add an edge in either direction with
|
/external/chromium_org/chrome/browser/ui/app_list/ |
H A D | app_list_positioner_unittest.cc | 23 // The distance the shelf will appear from the edge of the screen. 32 // edge of the screen. This must be < kWindowWidth / 2 and < kWindowHeight / 2. 59 // Sets up the test environment with the shelf along a given edge of the work 61 void PlaceShelf(AppListPositioner::ScreenEdge edge) { argument 63 switch (edge) { 254 // Shelf on bottom. Mouse near left edge. App list must not go off screen. 263 // Shelf on bottom. Mouse near right edge. App list must not go off screen.
|
/external/chromium_org/chrome/browser/ui/views/app_list/win/ |
H A D | app_list_win_unittest.cc | 25 // The distance the taskbar will appear from the edge of the screen. 38 // edge of the screen. This must be < kWindowWidth / 2 and < kWindowHeight / 2. 65 // Sets up the test environment with the taskbar along a given edge of the 67 void PlaceTaskbar(AppListPositioner::ScreenEdge edge) { argument 69 switch (edge) { 212 // Bottom taskbar. Mouse near left edge. App list must not go off screen. 220 // Bottom taskbar. Mouse near right edge. App list must not go off screen.
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
H A D | RenderFrameSet.h | 45 bool preventResize(FrameEdge edge) const { return m_preventResize[edge]; } 46 bool allowBorder(FrameEdge edge) const { return m_allowBorder[edge]; } 48 void setPreventResize(FrameEdge edge, bool preventResize) { m_preventResize[edge] = preventResize; } argument 49 void setAllowBorder(FrameEdge edge, bool allowBorder) { m_allowBorder[edge] = allowBorder; } argument
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkEdgeBuilder.cpp | 26 SkEdge* edge = typedAllocThrow<SkEdge>(fAlloc); local 27 if (edge->setLine(pts[0], pts[1], fShiftUp)) { 28 fList.push(edge); 30 // TODO: unallocate edge from storage... 35 SkQuadraticEdge* edge = typedAllocThrow<SkQuadraticEdge>(fAlloc); local 36 if (edge->setQuadratic(pts, fShiftUp)) { 37 fList.push(edge); 39 // TODO: unallocate edge from storage... 44 SkCubicEdge* edge = typedAllocThrow<SkCubicEdge>(fAlloc); local 45 if (edge 100 SkEdge* edge = reinterpret_cast<SkEdge*>(storage); local [all...] |
/external/skia/src/core/ |
H A D | SkEdgeBuilder.cpp | 26 SkEdge* edge = typedAllocThrow<SkEdge>(fAlloc); local 27 if (edge->setLine(pts[0], pts[1], fShiftUp)) { 28 fList.push(edge); 30 // TODO: unallocate edge from storage... 35 SkQuadraticEdge* edge = typedAllocThrow<SkQuadraticEdge>(fAlloc); local 36 if (edge->setQuadratic(pts, fShiftUp)) { 37 fList.push(edge); 39 // TODO: unallocate edge from storage... 44 SkCubicEdge* edge = typedAllocThrow<SkCubicEdge>(fAlloc); local 45 if (edge 100 SkEdge* edge = reinterpret_cast<SkEdge*>(storage); local [all...] |
/external/bison/src/ |
H A D | lalr.c | 162 goto_number *edge = xnmalloc (ngotos + 1, sizeof *edge); local 182 edge[nedges++] = map_goto (stateno, sym); 190 memcpy (reads[i], edge, nedges * sizeof edge[0]); 202 free (edge); 221 goto_number *edge = xnmalloc (ngotos + 1, sizeof *edge); local 263 edge[nedges++] = map_goto (states1[--length], 278 includes[i][j] = edge[ [all...] |
/external/chromium_org/ash/wm/dock/ |
H A D | docked_window_layout_manager_unittest.cc | 157 // horizontally to the edge with an added offset from the edge of |dx|. 158 void DragRelativeToEdge(DockedEdge edge, aura::Window* window, int dx) { argument 160 edge, 166 void DragToVerticalPositionAndToEdge(DockedEdge edge, argument 169 DragToVerticalPositionRelativeToEdge(edge, window, 0, y); 172 void DragToVerticalPositionRelativeToEdge(DockedEdge edge, argument 177 DragVerticallyAndRelativeToEdge(edge, window, dx, y - initial_bounds.y()); 181 // horizontally to the edge with an added offset from the edge o 182 DragVerticallyAndRelativeToEdge(DockedEdge edge, aura::Window* window, int dx, int dy) argument [all...] |
/external/chromium_org/athena/activity/ |
H A D | activity_frame_view.cc | 148 int edge = (top_height - kIconSize) / 2; local 149 icon_->SetBounds(edge, edge, kIconSize, kIconSize);
|
/external/chromium_org/chrome/browser/ui/views/ |
H A D | chrome_views_delegate.cc | 88 bool MonitorHasTopmostAutohideTaskbarForEdge(UINT edge, HMONITOR monitor) { argument 89 APPBARDATA taskbar_data = { sizeof(APPBARDATA), NULL, 0, edge }; 398 // in us thinking there is no auto-hide edges. By returning at least one edge
|
/external/chromium_org/content/browser/android/ |
H A D | overscroll_glow.cc | 31 gfx::Transform ComputeTransform(OverscrollGlow::Edge edge, argument 34 // Transforms assume the edge layers are anchored to their *top center point*. 35 switch (edge) { 56 NOTREACHED() << "Invalid edge: " << edge; 61 gfx::SizeF ComputeSize(OverscrollGlow::Edge edge, argument 63 switch (edge) { 71 NOTREACHED() << "Invalid edge: " << edge; 157 Edge edge local [all...] |