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

Unified Diff: ui/uilib/static_line.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/static_ex.cc ('k') | ui/uilib/static_line.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/uilib/static_line.h
diff --git a/ui/uilib/static_line.h b/ui/uilib/static_line.h
deleted file mode 100644
index 4802dca041e3f43b870fc0d22dd507fe2fa543b0..0000000000000000000000000000000000000000
--- a/ui/uilib/static_line.h
+++ /dev/null
@@ -1,76 +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.
-// ========================================================================
-
-//
-// static_line.h
-
-#ifndef OMAHA_UI_UILIB_STATIC_LINE_H_
-#define OMAHA_UI_UILIB_STATIC_LINE_H_
-
-#include <atlstr.h>
-#include <atltypes.h>
-#include <vector>
-#include "base/basictypes.h"
-
-class Node;
-
-class StaticLine {
- public:
- StaticLine();
- virtual ~StaticLine();
-
- int AdjustBaseLine(int base_line);
- int AdjustHeight(int height);
-
- int base_line() const { return base_line_; }
- int height() const { return height_; }
-
- void AddNode(Node* node, int start, int end, int height, int base_line,
- int width);
- void AddEllipses() { elipses_ = true; }
-
- bool IsUrlUnderMouse(CPoint point, CString* action);
-
- int Paint(HDC hdc, int left, int right, int y, DWORD window_style,
- int ellipsis);
-
- protected:
- int HitTest(CPoint point);
-
- int base_line_;
- int height_;
-
- struct Nodes {
- Node* node;
- int start; // first char to output
- int length; // number of chars
- int height;
- int base_line;
- int width;
- CRect rect;
-
- Nodes(Node* node, int start, int length, int height, int base_line,
- int width)
- : node(node), start(start), length(length), height(height),
- base_line(base_line), width(width), rect(0, 0, 0, 0) {}
- };
-
- std::vector<Nodes> nodes_;
- bool elipses_;
-
- DISALLOW_EVIL_CONSTRUCTORS(StaticLine);
-};
-
-#endif // OMAHA_UI_UILIB_STATIC_LINE_H_
« no previous file with comments | « ui/uilib/static_ex.cc ('k') | ui/uilib/static_line.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698