summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/tabs/base_tab_strip.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/tabs/base_tab_strip.cc')
-rw-r--r--chrome/browser/ui/views/tabs/base_tab_strip.cc15
1 files changed, 12 insertions, 3 deletions
diff --git a/chrome/browser/ui/views/tabs/base_tab_strip.cc b/chrome/browser/ui/views/tabs/base_tab_strip.cc
index 4f844ed..3035d30 100644
--- a/chrome/browser/ui/views/tabs/base_tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/base_tab_strip.cc
@@ -5,9 +5,9 @@
#include "chrome/browser/views/tabs/base_tab_strip.h"
#include "base/logging.h"
-#include "chrome/browser/view_ids.h"
-#include "chrome/browser/views/tabs/dragged_tab_controller.h"
-#include "chrome/browser/views/tabs/tab_strip_controller.h"
+#include "chrome/browser/ui/view_ids.h"
+#include "chrome/browser/ui/views/tabs/dragged_tab_controller.h"
+#include "chrome/browser/ui/views/tabs/tab_strip_controller.h"
#include "views/widget/root_view.h"
#include "views/window/window.h"
@@ -226,6 +226,15 @@ bool BaseTabStrip::IsDragSessionActive() const {
return drag_controller_.get() != NULL;
}
+bool BaseTabStrip::IsActiveDropTarget() const {
+ for (int i = 0; i < tab_count(); ++i) {
+ BaseTab* tab = base_tab_at_tab_index(i);
+ if (tab->dragging())
+ return true;
+ }
+ return false;
+}
+
void BaseTabStrip::SelectTab(BaseTab* tab) {
int model_index = GetModelIndexOfBaseTab(tab);
if (IsValidModelIndex(model_index))