Home | History | Annotate | Download | only in web_dialogs
      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
      3 // found in the LICENSE file.
      4 
      5 #include "ui/web_dialogs/web_dialog_delegate.h"
      6 
      7 namespace ui {
      8 
      9 std::string WebDialogDelegate::GetDialogName() const {
     10   return std::string();
     11 }
     12 
     13 void WebDialogDelegate::GetMinimumDialogSize(gfx::Size* size) const {
     14   GetDialogSize(size);
     15 }
     16 
     17 bool WebDialogDelegate::CanCloseDialog() const {
     18   return true;
     19 }
     20 
     21 bool WebDialogDelegate::CanResizeDialog() const {
     22   return true;
     23 }
     24 
     25 void WebDialogDelegate::OnDialogCloseFromWebUI(
     26     const std::string& json_retval) {
     27   OnDialogClosed(json_retval);
     28 }
     29 
     30 bool WebDialogDelegate::HandleContextMenu(
     31     const content::ContextMenuParams& params) {
     32   return false;
     33 }
     34 
     35 bool WebDialogDelegate::HandleOpenURLFromTab(
     36     content::WebContents* source,
     37     const content::OpenURLParams& params,
     38     content::WebContents** out_new_contents) {
     39   return false;
     40 }
     41 
     42 bool WebDialogDelegate::HandleAddNewContents(
     43     content::WebContents* source,
     44     content::WebContents* new_contents,
     45     WindowOpenDisposition disposition,
     46     const gfx::Rect& initial_pos,
     47     bool user_gesture) {
     48   return false;
     49 }
     50 
     51 }  // namespace ui
     52