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

Side by Side Diff: ui/base/dragdrop/os_exchange_data_provider_win.cc

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 unified diff | Download patch
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_win.h ('k') | ui/base/ime/chromeos/ime_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/base/dragdrop/os_exchange_data_provider_win.h" 5 #include "ui/base/dragdrop/os_exchange_data_provider_win.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // 56 //
57 // This object implements an enumeration interface. The existence of an 57 // This object implements an enumeration interface. The existence of an
58 // implementation of this interface is exposed to clients through 58 // implementation of this interface is exposed to clients through
59 // OSExchangeData's EnumFormatEtc method. Our implementation is nobody's 59 // OSExchangeData's EnumFormatEtc method. Our implementation is nobody's
60 // business but our own, so it lives in this file. 60 // business but our own, so it lives in this file.
61 // 61 //
62 // This Windows API is truly a gem. It wants to be an enumerator but assumes 62 // This Windows API is truly a gem. It wants to be an enumerator but assumes
63 // some sort of sequential data (why not just use an array?). See comments 63 // some sort of sequential data (why not just use an array?). See comments
64 // throughout. 64 // throughout.
65 // 65 //
66 class FormatEtcEnumerator FINAL : public IEnumFORMATETC { 66 class FormatEtcEnumerator final : public IEnumFORMATETC {
67 public: 67 public:
68 FormatEtcEnumerator(DataObjectImpl::StoredData::const_iterator begin, 68 FormatEtcEnumerator(DataObjectImpl::StoredData::const_iterator begin,
69 DataObjectImpl::StoredData::const_iterator end); 69 DataObjectImpl::StoredData::const_iterator end);
70 ~FormatEtcEnumerator(); 70 ~FormatEtcEnumerator();
71 71
72 // IEnumFORMATETC implementation: 72 // IEnumFORMATETC implementation:
73 HRESULT __stdcall Next( 73 HRESULT __stdcall Next(
74 ULONG count, FORMATETC* elements_array, ULONG* elements_fetched); 74 ULONG count, FORMATETC* elements_array, ULONG* elements_fetched);
75 HRESULT __stdcall Skip(ULONG skip_count); 75 HRESULT __stdcall Skip(ULONG skip_count);
76 HRESULT __stdcall Reset(); 76 HRESULT __stdcall Reset();
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 1048
1049 /////////////////////////////////////////////////////////////////////////////// 1049 ///////////////////////////////////////////////////////////////////////////////
1050 // OSExchangeData, public: 1050 // OSExchangeData, public:
1051 1051
1052 // static 1052 // static
1053 OSExchangeData::Provider* OSExchangeData::CreateProvider() { 1053 OSExchangeData::Provider* OSExchangeData::CreateProvider() {
1054 return new OSExchangeDataProviderWin(); 1054 return new OSExchangeDataProviderWin();
1055 } 1055 }
1056 1056
1057 } // namespace ui 1057 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_win.h ('k') | ui/base/ime/chromeos/ime_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698