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

Side by Side Diff: chrome/browser/ui/views/extensions/browser_action_drag_data.h

Issue 1149113006: Move Pickle to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_DRAG_DATA_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_DRAG_DATA_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_DRAG_DATA_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_DRAG_DATA_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 11
12 #if defined(TOOLKIT_VIEWS) 12 #if defined(TOOLKIT_VIEWS)
13 #include "ui/base/dragdrop/os_exchange_data.h" 13 #include "ui/base/dragdrop/os_exchange_data.h"
14 #endif 14 #endif
15 15
16 class Profile;
17
18 namespace base {
16 class Pickle; 19 class Pickle;
17 class Profile; 20 }
18 21
19 class BrowserActionDragData { 22 class BrowserActionDragData {
20 public: 23 public:
21 BrowserActionDragData(); 24 BrowserActionDragData();
22 BrowserActionDragData(const std::string& id, int index); 25 BrowserActionDragData(const std::string& id, int index);
23 26
24 // These mirror the views::View and views::MenuDelegate methods for dropping, 27 // These mirror the views::View and views::MenuDelegate methods for dropping,
25 // and return the appropriate results for being able to drop an extension's 28 // and return the appropriate results for being able to drop an extension's
26 // BrowserAction view. 29 // BrowserAction view.
27 static bool GetDropFormats( 30 static bool GetDropFormats(
(...skipping 12 matching lines...) Expand all
40 void Write(Profile* profile, ui::OSExchangeData* data) const; 43 void Write(Profile* profile, ui::OSExchangeData* data) const;
41 44
42 // Restores this data from the clipboard, returning true on success. 45 // Restores this data from the clipboard, returning true on success.
43 bool Read(const ui::OSExchangeData& data); 46 bool Read(const ui::OSExchangeData& data);
44 47
45 // Returns the Custom Format this class supports (for Browser Actions). 48 // Returns the Custom Format this class supports (for Browser Actions).
46 static const ui::OSExchangeData::CustomFormat& GetBrowserActionCustomFormat(); 49 static const ui::OSExchangeData::CustomFormat& GetBrowserActionCustomFormat();
47 #endif 50 #endif
48 51
49 private: 52 private:
50 void WriteToPickle(Profile* profile, Pickle* pickle) const; 53 void WriteToPickle(Profile* profile, base::Pickle* pickle) const;
51 bool ReadFromPickle(Pickle* pickle); 54 bool ReadFromPickle(base::Pickle* pickle);
52 55
53 // The profile we originated from. 56 // The profile we originated from.
54 void* profile_; 57 void* profile_;
55 58
56 // The id of the view being dragged. 59 // The id of the view being dragged.
57 std::string id_; 60 std::string id_;
58 61
59 // The index of the view being dragged. 62 // The index of the view being dragged.
60 size_t index_; 63 size_t index_;
61 64
62 DISALLOW_COPY_AND_ASSIGN(BrowserActionDragData); 65 DISALLOW_COPY_AND_ASSIGN(BrowserActionDragData);
63 }; 66 };
64 67
65 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_DRAG_DATA_H_ 68 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_BROWSER_ACTION_DRAG_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/fast_show_pickler.h ('k') | chrome/browser/ui/views/extensions/browser_action_drag_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698