Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: chrome/common/gfx/chrome_canvas.h

Issue 8991: Always show file extensions in the shelf. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/views/download_item_view.cc ('k') | chrome/common/gfx/chrome_canvas.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_GFX_CHROME_CANVAS_H_ 5 #ifndef CHROME_COMMON_GFX_CHROME_CANVAS_H_
6 #define CHROME_COMMON_GFX_CHROME_CANVAS_H_ 6 #define CHROME_COMMON_GFX_CHROME_CANVAS_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <string> 9 #include <string>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 static const int MULTI_LINE = 64; 45 static const int MULTI_LINE = 64;
46 46
47 // By default DrawStringInt does not process the prefix ('&') character 47 // By default DrawStringInt does not process the prefix ('&') character
48 // specially. That is, the string "&foo" is rendered as "&foo". When 48 // specially. That is, the string "&foo" is rendered as "&foo". When
49 // rendering text from a resource that uses the prefix character for 49 // rendering text from a resource that uses the prefix character for
50 // mnemonics, the prefix should be processed and can be rendered as an 50 // mnemonics, the prefix should be processed and can be rendered as an
51 // underline (SHOW_PREFIX), or not rendered at all (HIDE_PREFIX). 51 // underline (SHOW_PREFIX), or not rendered at all (HIDE_PREFIX).
52 static const int SHOW_PREFIX = 128; 52 static const int SHOW_PREFIX = 128;
53 static const int HIDE_PREFIX = 256; 53 static const int HIDE_PREFIX = 256;
54 54
55 // Prevent ellipsizing
56 static const int NO_ELLIPSIS = 512;
57
55 // Creates an empty ChromeCanvas. Callers must use initialize before using 58 // Creates an empty ChromeCanvas. Callers must use initialize before using
56 // the canvas. 59 // the canvas.
57 ChromeCanvas(); 60 ChromeCanvas();
58 61
59 ChromeCanvas(int width, int height, bool is_opaque); 62 ChromeCanvas(int width, int height, bool is_opaque);
60 63
61 virtual ~ChromeCanvas(); 64 virtual ~ChromeCanvas();
62 65
63 // Retrieves the clip rectangle and sets it in the specified rectangle if any. 66 // Retrieves the clip rectangle and sets it in the specified rectangle if any.
64 // Returns true if the clip rect is non-empty. 67 // Returns true if the clip rect is non-empty.
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 void DoDrawText(HDC hdc, const std::wstring& text, RECT* text_bounds, 179 void DoDrawText(HDC hdc, const std::wstring& text, RECT* text_bounds,
177 int flags); 180 int flags);
178 181
179 DISALLOW_EVIL_CONSTRUCTORS(ChromeCanvas); 182 DISALLOW_EVIL_CONSTRUCTORS(ChromeCanvas);
180 }; 183 };
181 184
182 typedef gfx::CanvasPaintT<ChromeCanvas> ChromeCanvasPaint; 185 typedef gfx::CanvasPaintT<ChromeCanvas> ChromeCanvasPaint;
183 186
184 #endif // CHROME_COMMON_GFX_CHROME_CANVAS_H_ 187 #endif // CHROME_COMMON_GFX_CHROME_CANVAS_H_
185 188
OLDNEW
« no previous file with comments | « chrome/browser/views/download_item_view.cc ('k') | chrome/common/gfx/chrome_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698