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

Side by Side Diff: chrome/browser/ui/views/browser_actions_container.h

Issue 6200005: Move OSExchangeData from src/app to src/ui/base/dragdrop... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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) 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_BROWSER_ACTIONS_CONTAINER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_
6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 bool inspect_with_devtools); 316 bool inspect_with_devtools);
317 317
318 // Overridden from views::View: 318 // Overridden from views::View:
319 virtual gfx::Size GetPreferredSize(); 319 virtual gfx::Size GetPreferredSize();
320 virtual void Layout(); 320 virtual void Layout();
321 virtual void Paint(gfx::Canvas* canvas); 321 virtual void Paint(gfx::Canvas* canvas);
322 virtual void ViewHierarchyChanged(bool is_add, 322 virtual void ViewHierarchyChanged(bool is_add,
323 views::View* parent, 323 views::View* parent,
324 views::View* child); 324 views::View* child);
325 virtual bool GetDropFormats( 325 virtual bool GetDropFormats(
326 int* formats, std::set<OSExchangeData::CustomFormat>* custom_formats); 326 int* formats, std::set<ui::OSExchangeData::CustomFormat>* custom_formats);
327 virtual bool AreDropTypesRequired(); 327 virtual bool AreDropTypesRequired();
328 virtual bool CanDrop(const OSExchangeData& data); 328 virtual bool CanDrop(const ui::OSExchangeData& data);
329 virtual void OnDragEntered(const views::DropTargetEvent& event); 329 virtual void OnDragEntered(const views::DropTargetEvent& event);
330 virtual int OnDragUpdated(const views::DropTargetEvent& event); 330 virtual int OnDragUpdated(const views::DropTargetEvent& event);
331 virtual void OnDragExited(); 331 virtual void OnDragExited();
332 virtual int OnPerformDrop(const views::DropTargetEvent& event); 332 virtual int OnPerformDrop(const views::DropTargetEvent& event);
333 virtual void OnThemeChanged(); 333 virtual void OnThemeChanged();
334 virtual AccessibilityTypes::Role GetAccessibleRole(); 334 virtual AccessibilityTypes::Role GetAccessibleRole();
335 335
336 // Overridden from views::ViewMenuDelegate: 336 // Overridden from views::ViewMenuDelegate:
337 virtual void RunMenu(View* source, const gfx::Point& pt); 337 virtual void RunMenu(View* source, const gfx::Point& pt);
338 338
339 // Overridden from views::DragController: 339 // Overridden from views::DragController:
340 virtual void WriteDragData(View* sender, 340 virtual void WriteDragData(View* sender,
341 const gfx::Point& press_pt, 341 const gfx::Point& press_pt,
342 OSExchangeData* data); 342 ui::OSExchangeData* data);
343 virtual int GetDragOperations(View* sender, const gfx::Point& p); 343 virtual int GetDragOperations(View* sender, const gfx::Point& p);
344 virtual bool CanStartDrag(View* sender, 344 virtual bool CanStartDrag(View* sender,
345 const gfx::Point& press_pt, 345 const gfx::Point& press_pt,
346 const gfx::Point& p); 346 const gfx::Point& p);
347 347
348 // Overridden from ResizeArea::ResizeAreaDelegate: 348 // Overridden from ResizeArea::ResizeAreaDelegate:
349 virtual void OnResize(int resize_amount, bool done_resizing); 349 virtual void OnResize(int resize_amount, bool done_resizing);
350 350
351 // Overridden from ui::AnimationDelegate: 351 // Overridden from ui::AnimationDelegate:
352 virtual void AnimationProgressed(const ui::Animation* animation); 352 virtual void AnimationProgressed(const ui::Animation* animation);
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 506
507 ScopedRunnableMethodFactory<BrowserActionsContainer> task_factory_; 507 ScopedRunnableMethodFactory<BrowserActionsContainer> task_factory_;
508 508
509 // Handles delayed showing of the overflow menu when hovering. 509 // Handles delayed showing of the overflow menu when hovering.
510 ScopedRunnableMethodFactory<BrowserActionsContainer> show_menu_task_factory_; 510 ScopedRunnableMethodFactory<BrowserActionsContainer> show_menu_task_factory_;
511 511
512 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); 512 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer);
513 }; 513 };
514 514
515 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ 515 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698