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

Side by Side Diff: chrome/browser/ui/views/frame/system_menu_insertion_delegate_win.cc

Issue 14150005: views: Finally get rid of the deprecated Menu2 API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm comment Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "chrome/browser/ui/views/frame/system_menu_insertion_delegate_win.h" 5 #include "chrome/browser/ui/views/frame/system_menu_insertion_delegate_win.h"
6 6
7 #include <Windowsx.h> 7 #include <algorithm>
8 8
9 int SystemMenuInsertionDelegateWin::GetInsertionIndex(HMENU native_menu) { 9 int SystemMenuInsertionDelegateWin::GetInsertionIndex(HMENU native_menu) {
10 return std::max(0, GetMenuItemCount(native_menu) - 1); 10 return std::max(0, GetMenuItemCount(native_menu) - 1);
11 } 11 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698