1// Copyright 2011 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5module ui.mojom; 6 7// TODO(rockot/ben): This definitely seems like the wrong layer for a 8// "window open disposition" concept. It's here to support existing uses of 9// ui::WindowOpenDisposition. 10// 11// This maps to WindowOpenDisposition in //ui/base/window_open_disposition.h. 12enum WindowOpenDisposition { 13 UNKNOWN, 14 CURRENT_TAB, 15 // Indicates that only one tab with the url should exist in the same window. 16 SINGLETON_TAB, 17 NEW_FOREGROUND_TAB, 18 NEW_BACKGROUND_TAB, 19 NEW_POPUP, 20 NEW_WINDOW, 21 SAVE_TO_DISK, 22 OFF_THE_RECORD, 23 IGNORE_ACTION, 24 // Activates an existing tab containing the url, rather than navigating. 25 // This is similar to SINGLETON_TAB, but searches across all windows from 26 // the current profile and anonymity (instead of just the current one); 27 // closes the current tab on switching if the current tab was the NTP with 28 // no session history; and behaves like CURRENT_TAB instead of 29 // NEW_FOREGROUND_TAB when no existing tab is found. 30 SWITCH_TO_TAB, 31}; 32