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: ash/wm/overview/window_selector.cc

Issue 1420333006: Remove uses of std::unary_function and std::binary_function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « ash/wm/overview/window_grid.cc ('k') | components/bookmarks/browser/bookmark_index.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overview/window_selector.cc
diff --git a/ash/wm/overview/window_selector.cc b/ash/wm/overview/window_selector.cc
index c940dff05b12a0243b05f42bb13995ce4d4e5c88..109143ebc4d898ddffdb4c994cd991193471ef44 100644
--- a/ash/wm/overview/window_selector.cc
+++ b/ash/wm/overview/window_selector.cc
@@ -73,8 +73,7 @@ const unsigned char kTextFilterOpacity = 180;
const int kTextFilterCornerRadius = 1;
// A comparator for locating a grid with a given root window.
-struct RootWindowGridComparator
- : public std::unary_function<WindowGrid*, bool> {
+struct RootWindowGridComparator {
explicit RootWindowGridComparator(const aura::Window* root_window)
: root_window_(root_window) {
}
@@ -87,8 +86,7 @@ struct RootWindowGridComparator
};
// A comparator for locating a selectable window given a targeted window.
-struct WindowSelectorItemTargetComparator
- : public std::unary_function<WindowSelectorItem*, bool> {
+struct WindowSelectorItemTargetComparator {
explicit WindowSelectorItemTargetComparator(const aura::Window* target_window)
: target(target_window) {
}
@@ -101,8 +99,7 @@ struct WindowSelectorItemTargetComparator
};
// A comparator for locating a selector item for a given root.
-struct WindowSelectorItemForRoot
- : public std::unary_function<WindowSelectorItem*, bool> {
+struct WindowSelectorItemForRoot {
explicit WindowSelectorItemForRoot(const aura::Window* root)
: root_window(root) {
}
« no previous file with comments | « ash/wm/overview/window_grid.cc ('k') | components/bookmarks/browser/bookmark_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698