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

Unified Diff: ui/uilib/node_state.h

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « ui/uilib/node.h ('k') | ui/uilib/node_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/uilib/node_state.h
diff --git a/ui/uilib/node_state.h b/ui/uilib/node_state.h
deleted file mode 100644
index 77ce30a1dda997900937133c1b98d1c7ff267170..0000000000000000000000000000000000000000
--- a/ui/uilib/node_state.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright 2006-2009 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ========================================================================
-//
-
-#ifndef OMAHA_UI_UILIB_NODE_STATE_H_
-#define OMAHA_UI_UILIB_NODE_STATE_H_
-
-#include <atlstr.h>
-
-class NodeState {
- public:
- explicit NodeState(HWND window);
- virtual ~NodeState();
-
- void SetStdFont(HFONT font);
- HFONT GetFont() const;
- COLORREF text_color() const { return text_color_; }
- bool IsURL() const { return !url_.IsEmpty(); }
- CString url() const { return url_; }
-
- int ConsumeTag(const TCHAR* string);
-
- private:
- enum Actions {
- UNKNOWN,
- BOLD_ON,
- BOLD_OFF,
- ITALIC_ON,
- ITALIC_OFF,
- UNDERLINE_ON,
- UNDERLINE_OFF,
- TEXTCOLOR_ON,
- TEXTCOLOR_OFF,
- TEXTSIZE_ON,
- TEXTSIZE_OFF,
- URL_ON,
- URL_OFF,
- };
-
- struct Tags {
- const TCHAR* name_to_match;
- int length_name_to_match;
- Actions action;
- bool no_parameters;
- };
-
- int ApplyAction(Actions action, const TCHAR* string);
- int ReadNumParameter(const TCHAR* string, int* param);
- int ReadHexParameter(const TCHAR* szString, int* param);
- int ReadColorRef(const TCHAR* string, int* param);
- int ReadString(const TCHAR* string, CString* string_out);
- bool IsDefaultFont() const;
-
- // Data
- static Tags tags_[];
-
- HWND owner_window_;
- HFONT default_font_;
- mutable HFONT font_;
-
- bool bold_;
- bool italic_;
- bool underline_;
- COLORREF text_color_;
- int text_size_;
- CString url_;
-};
-
-#endif // OMAHA_UI_UILIB_NODE_STATE_H_
« no previous file with comments | « ui/uilib/node.h ('k') | ui/uilib/node_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698