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

Unified Diff: ui/gfx/decorated_text_mac.h

Issue 2164483006: [MacViews] Implemented text context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed tapted's comments and added a test Created 3 years, 11 months 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/decorated_text_mac.h
diff --git a/ui/gfx/decorated_text_mac.h b/ui/gfx/decorated_text_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..5f320822dadadb1f26a16321ac2e70e2d7d88452
--- /dev/null
+++ b/ui/gfx/decorated_text_mac.h
@@ -0,0 +1,22 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_GFX_DECORATED_TEXT_MAC_H_
+#define UI_GFX_DECORATED_TEXT_MAC_H_
+
+#include "ui/gfx/gfx_export.h"
+
+@class NSAttributedString;
+
+namespace gfx {
+
+struct DecoratedText;
+
+// Returns a NSAttributedString from |decorated_text|.
msw 2017/01/26 20:59:16 optional nit: I'd potentially put this in decorate
spqchan 2017/02/01 00:32:38 Acknowledged.
+GFX_EXPORT NSAttributedString* GetAttributedStringFromDecoratedText(
+ const DecoratedText& decorated_text);
+
+} // namespace gfx
+
+#endif // UI_GFX_DECORATED_TEXT_MAC_H_
« no previous file with comments | « ui/gfx/BUILD.gn ('k') | ui/gfx/decorated_text_mac.mm » ('j') | ui/gfx/render_text.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698